Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible with scriptrunner create JQL filter to compare the field status

Marcela Junyent
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.
February 10, 2020

Is it possible with scriptrunner create JQL filter to compare the field status with a selected list custom field?

1 answer

0 votes
Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 10, 2020

Hello @Marcela Junyent ,

Maybe. Can you be a little more specific about what you have in mind and the sort of problem you are trying to solve?

Marcela Junyent
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.
February 12, 2020

I have a field in each issue that called: Target Status. And I need to check which issues are in that status.

status = target status.

Regards, Marce

Fernando Bordallo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2020

Hello again @Marcela Junyent

Indeed this is something you can do with scriptrunner by first querying the issue for the `Target status` value and the building the JQL dynamically from it. 

This is a question that has come up before. You can see how others solved similar problems in these two threads:

https://community.atlassian.com/t5/Jira-questions/Script-Runner-Get-All-Issues-Logged-User-with-Status-quot-in/qaq-p/258287

https://community.atlassian.com/t5/Jira-Core-questions/Scripted-field-where-we-can-see-the-JQL-filter-s-results/qaq-p/1018559

Suggest an answer

Log in or Sign up to answer