The issues in my project have a text custom field named 'partner' whose content may be repeated several times.
Then, I would like to create a JQL expression where I could get a list with issues with different partners only (exactly as the 'distinct' filter on usual SQL), as below:
project=XPTO AND issuetype="report" WITH DISTINCT partner
If I have more than one issue with partner = 'Alfred', for me it doesn't matter which one is returned by the JQL. It is enough that only one issue is shown.
Is it possible?
Thanks in advance.
JQL in Jira has the ability to show values that include a search terms within defined criteria, but does not have the ability to leverage a distinct or unique clause for those values.
Check out the following question that was previously asked about with a discussion about a add-on that does have a possible workaround through extended JQL options that might work for you:
As @Earl McCutcheon mentioned, JIRA JQL does not have a way to limit the filter query to return a single result, as the Distinct parameter does in SQL language.
For now, here are the two easiest options you can use to achieve it:
1 - Export all your issues to CSV and then use a spreadsheet software (Like Excel) to remove all recurrent cells in the column.
2 - Use the SQL+JQL Driver plugin which provides you with SQL commands in your JQL queries - Only available for JIRA Server.
Additionally, feel free to vote and watch the suggestion below to increase its priority and also receive notifications about any updates:
Let me know if you still have any questions.
You are welcome, Antônio.
I agree this feature was requested a long time.
In fact, Atlassian prioritizes new feature implementations based on the number of customers affected (Votes) and some other factors, like what consequences it can bring to the application (Performance issues, incoherent behaviors, etc).
Since the request still needs more unique domain votes before being reviewed and the number of Atlassian customers is growing exponentially, I am optimist it's going to get some attention in the near future.
Have a nice Wednesday and let us know if we can help with anything else. :)
This is 2019, Do you have any thing done here? I have a same requirement where i need to show the report of distinct values in a similar way what @Antônio Duarte has mentioned!
Can you please suggest me how do i proceed further, definitely i am not going to export them to excel and do all the stuff as you mentioned, I need that to be done in JIRA.
Learn how to use two new reports for next-gen projects in Jira Cloud: Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events