Forums

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

Can I name a jql query and call it in Jira Service Desk automation?

Connor_Richardson
Contributor
April 23, 2020

IMG-2408.jpgI would like to name the JQL query on the right side of this photo and call the query by its name. I use this query in multiple automation rules and would like to be able to name it so that I can update the JQL in one place rather than having to update it in several. This minimizes points of failure when I have to update the query and saves a ton of time. A solution would be greatly appreciated!

1 answer

0 votes
Jack Nolddor _Sweet Bananas_
Atlassian Partner
April 23, 2020

Hi,

You can create a saved filter, give it a name and the reuse the filter on others JQL as shown below:

filter = "My Saved Filter"

Regards

Connor_Richardson
Contributor
April 23, 2020

@Jack Nolddor _Sweet Bananas_ That does not work on Jira Server unfortunately. It allows you to enter the query but when the automation rule is executed it shows that the "Else If" Condition is not met and therefore does not execute the "Then" action

Connor_Richardson
Contributor
April 24, 2020

@Jack_Nolddor__Sweet_Bananas_ Is there another way to accomplish this in automation without using "filter = "My Saved Filter""?

Jack Nolddor _Sweet Bananas_
Atlassian Partner
April 24, 2020

Hi,

As far as I know is the only way to refer another filter. If Automation does not allow you tu use 'filter' word on JQL I believe there is no way.

 

Regards

Suggest an answer

Log in or Sign up to answer