How to Add a Line in a Jira Filter
In this article
To add a line in a Jira filter, you edit the filter's JQL (Jira Query Language) and insert a new condition on its own line, then save. Jira does not have a dedicated “add line” button; the line is simply a new logical clause in the query. You need permission to edit the filter (you must be the owner or have been given edit rights) and a basic understanding of JQL operators such as AND, OR, and comparison symbols like =, !=, IN, and IS.
What You'll Need
- A Jira account with permission to edit the filter you want to change. If the filter is shared but not owned by you, you may only be able to save a copy.
- Access to the Jira web interface on desktop. The mobile apps and mobile browser view have limited filter editing, so use a desktop browser for reliable results.
- The exact field names and values you want to filter on (for example,
project = "My Project"orstatus = "In Progress"). Field names are case-sensitive in some Jira versions, so copy them from an existing filter or the field picker if unsure. - Basic familiarity with JQL. If you have never written JQL, start by opening an existing filter and reading its query before you modify it.
Step-by-Step
- Open the filter. In Jira, go to Filters in the top navigation and select View all filters, or open the filter directly from a saved link. Click the filter's name to open it in the issue navigator. Menu labels can differ slightly by Jira version, cloud versus Data Center, and region, but the Filters menu is present in all current versions.
- Switch to JQL editing mode. In the issue navigator, click the JQL button or the query bar that shows the current query. If you see a basic search with dropdowns, click Switch to JQL (or the equivalent link) to reveal the text editor. The exact label varies: some versions show a toggle, others a link labelled Advanced or JQL.
- Place your cursor where the new condition belongs. JQL conditions are joined by
ANDorOR. To add a line, click at the end of an existing condition, pressEnterto start a new line, and type the connector (ANDorOR) followed by your new condition. For example, if the current query isproject = "My Project", you would add a new line so it reads:project = "My Project"AND status = "In Progress" - Use parentheses for mixed logic. If you combine
ANDandOR, wrap groups in parentheses so Jira evaluates them as intended. For example:project = "My Project"AND (status = "In Progress" OR status = "To Do")
Without parentheses, Jira appliesANDbeforeOR, which can return unexpected results. - Validate the query. As you type, Jira underlines errors in red and shows a message below the editor. Common errors include unknown field names, missing quotes around values with spaces, and unmatched parentheses. Fix any red indicators before proceeding.
- Run the search. Press
Enteror click the search icon (usually a magnifying glass) to execute the query. Check that the result count and the issues shown match what you expect. If the results look wrong, compare your new line against the field values in a known issue. - Save the filter. Click Save (or Save as if you do not own the filter). Give the filter a name and choose who can see it: private, shared with a project, or shared with a group. If you lack edit rights, Save as creates your own copy with the new line included.
- Confirm the saved filter. Reopen the filter from the Filters menu and verify the new line is present and the results are correct. If you use the filter in a dashboard gadget or a board, the gadget or board will use the updated query automatically.
Common Mistakes
- Forgetting the connector. A new line without
ANDorORat the start (or end) of the previous line produces a syntax error. JQL does not treat line breaks as implicit connectors. - Missing quotes around values with spaces.
status = In Progressfails; it must bestatus = "In Progress". Single words without spaces can often be unquoted, but quoting is safer and more consistent. - Using the wrong field name. Jira field names are specific:
assignee,reporter,status,project,labels,created, and so on. A misspelled field triggers an error or returns nothing. - Ignoring operator precedence. Mixing
ANDandORwithout parentheses changes the meaning of the filter. Always group alternatives. - Saving over a shared filter. If the filter belongs to someone else, saving may fail or alter their view. Use Save as to create your own copy instead.
Tips
- Use the field autocomplete in the JQL editor: start typing a field name and select from the suggestions to avoid typos.
- Keep one condition per line. It makes long filters readable and easier to debug when results are wrong.
- Test new lines by temporarily removing them and comparing result counts. This confirms the line actually changes the filter as intended.
- Use
ORDER BYon its own final line to sort results, for exampleORDER BY created DESC. It is not a filter condition but is part of the query. - If you reuse a filter often, save it with a clear name and share it with your team so everyone works from the same query.
Troubleshooting
- The query shows a red error and will not run. Read the message below the editor; it usually names the problem field or the position of the syntax error. Check quotes, parentheses, and connectors first.
- The filter runs but returns no issues. Remove the new line and run again. If results return, the new condition is too restrictive or uses a value that does not exist in your project. Check the exact spelling of status names, usernames, and project keys.
- You cannot save the filter. You likely lack edit permission. Use Save as to create a personal copy, or ask the filter owner or a Jira administrator to grant you edit rights.
- The saved filter looks different from what you typed. Some Jira versions reformat JQL when saving, for example by removing extra spaces. This is normal; the logic is unchanged. Reopen the filter to confirm the conditions are intact.
- A dashboard gadget or board does not reflect the change. Refresh the page or the gadget. Boards that use the filter update automatically, but cached dashboard views may need a reload.
Frequently Asked Questions
Can I add a line without using JQL?
Basic search lets you add conditions through dropdowns, but it does not expose line breaks. To control line structure, switch to JQL mode and edit the query directly.
Does a line break change how Jira reads the filter?
No. Jira ignores line breaks when parsing JQL; they are for readability only. The logical connectors AND and OR determine the meaning.
Why does my new line not change the results?
The condition may already be true for every issue in the current set, or it may be redundant with an existing condition. Test by temporarily removing other lines to isolate the effect.
Can I add a comment or note inside a JQL filter?
JQL does not support comments. Any text that is not a valid condition causes an error. Keep notes outside the filter, for example in the filter description if your Jira version provides one.
What happens to filters used by boards if I add a line?
The board uses the saved filter, so the new line takes effect immediately after saving. Issues that no longer match disappear from the board, which can affect in-progress work visibility, so check the board after saving.
Can I add a line to a filter I do not own?
Only if you have been granted edit permission. Otherwise, use Save as to create your own copy with the added line, and ask the owner to update the original if needed.