Forums

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

Find if an issue exist in a filter result

Samuel Bar
Contributor
June 23, 2021

Hi,
I have a saved filter that returns all customer-reported bugs.
I have created an automation rule that should update some fields when changing the fix version of a Bug, but only if the Bug is part of the returned list of issues by the saved filter.

In order to filter only issues matching these conditions, I will use a " JQL condition" in my rule. The question what is the right JQL.

 

Thanks,

Samuel Bar

2 answers

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
June 23, 2021

Hello @Samuel Bar 

If I understand your question correctly, then you JQL Condition should be the JQL of your saved filter. Have you tried that? If you have and you are not getting the desired outcome, please tell us what is happening and show us the rule you have created.

Samuel Bar
Contributor
June 24, 2021

Hi @Trudy Claspill  and @Daniel Turczanski - JQL Search Extensions  ,
Thanks for your suggestions. 
I did what you have suggested but still not work.
Please see attached PrtScn with the rule definition.
In picture #2, you can see the JQL condition - Only if the current issue is part of the returned issues of the saved filter, then edit the issue.

Please advice,

Thanks

image.pngimage.pngimage.png

Trudy Claspill
Community Champion
June 24, 2021

So, you are saying the rule is not working as you expect it to. How is it not working?

Is it not updating issue you think it should?

Is it updating issues you think it should not?

Is the rule getting triggered at all?

Show us the Audit Log for an instance where the rule is triggered and you don't get the desired results.

Samuel Bar
Contributor
June 24, 2021

Hi @Trudy Claspill ,
thanks for your fast response.

As you can see, issues Key MXPI-506 is returned when executing the saved filter
image.png

So it should meet the condition 

image.png

and the issue should be edited
image.png

But not working
image.png

Trudy Claspill
Community Champion
June 24, 2021

I tried something similar.

In the JQL condition if I used

filter = "name of filter"

...then I got the same results that you did. I even clicked the Validate Query link on the condition and it said it found matching issues.

If instead in the JQL condition I put the actual criteria of the filter, i.e

issuetype = Bug and project=ABC

...then the filter executed successfully and the Actions in it worked correctly.

Samuel Bar
Contributor
June 24, 2021

@Trudy Claspill Thanks for your fast answers.

I will try it too.

I will also open a support ticket to Jira.

 

Thanks,

Samuel Bar

0 votes
Daniel Turczanski - JQL Search Extensions
Atlassian Partner
June 23, 2021

Hi Samuel,

Are you asking how to refer to your filter in the JQL? The syntax is:

filter="My filter"

Suggest an answer

Log in or Sign up to answer