Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get a specific summary content based on currentUser() in advance searching using jql?

Christian Michael Arizala August 20, 2015

Hi,

Just want to ask how to get a specific content of summary using jql based on currentUser()? We have a summary wherein we translated the currentUser() and change it to display name. So I want to have a jql that shows all issues that have a summary that contains "Christian Michael G. Arizala - Pending". My currentUser() is cga4002 and the display name is "Christian Michael G. Arizala". So meaning if I have a filter using jql it will only automatically shows all isues with "Christian Michael G. Arizala - Pending". Please help.

Thank you very much. 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2015

Hi Christian,

First option is update summaries with usernames so they look like:  "Christian Michael G. Arizala, cga4002 - Pending" then you will be able to search for issues that contain username in summary:

summary ~ currentUser()

Second option is to create custom JQL function plugin that returns display name concatenated with passed status string:

summary ~ userWithStatus('Pending')
Christian Michael Arizala August 21, 2015

Hi Volodymryr, First Option cannot be because it is the request of our managers to have display name instead of username. Second Option is how to create a custom jql function without the plugin? If ever that is not possible where can I get the custom jql function creator? Thank you very much.

Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2015

Hi Christian, Actually you can create jql function without creating your own plugin, by utilizing Script Runner plugin: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-Writingyourownfunctions And the best place to get jql function creator is here :-).

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2015

You should rethink your usage. Whatever the user represents should be in a user custom field, not in the summary.

TAGS
AUG Leaders

Atlassian Community Events