Forums

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

Jira automation to create JQL filter based on release creation

Tim Van Mierlo October 26, 2021

I'm looking for a Jira automation rule that creates a JQL filter based on project and last created release, like :  project = {{project.name}} and fixversion={{version.name}}

 

 

1 answer

1 accepted

2 votes
Answer accepted
Manuel Bastardo Castellano
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.
October 26, 2021

Hi @Tim Van Mierlo  you need to set up a automation when a Version is released just send a web request like this:

Captura de pantalla 2021-10-26 a las 13.48.59.png

and then: 

Captura de pantalla 2021-10-26 a las 13.42.04.png

 

Finally you got like this:  

Captura de pantalla 2021-10-26 a las 13.47.33.png

 

I hope it helps

 

Regards

Tim Van Mierlo October 26, 2021

@Manuel Bastardo Castellano , thanks, this works!

Tim Van Mierlo October 26, 2021

Additional question : Would it be possible to get the url from this created filter to send it by email?

Manuel Bastardo Castellano
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.
October 26, 2021

Well done!!

Additional answer :)  You need to enable the "Delay execution of subsequent rule actions until we've received a response for this web request" in the Send request action

then you add send email action:

Captura de pantalla 2021-10-26 a las 16.03.40.png

 

Finally you got something like this:

 

Captura de pantalla 2021-10-26 a las 16.05.21.png

Like Tim Van Mierlo likes this
Abhishek Kalamkar July 28, 2023

@Manuel Bastardo Castellano  : I am using the above query as you mentioned but it is still  getting error. can you please help.

 

image.png

and moreover, once we create dynamic filter, can we change the filter permissions.image.png

Taranjeet Singh
Community Champion
July 31, 2023

@Abhishek Kalamkar You have a typo in your JSON data in the "Custom data" section of your Web request body.

More specifically, 

"name": "{{version.name}} in3 {{version.project.key}}"

should be typed as:

"name": "{{version.name}} in {{version.project.key}}"

Hope this helps fixing your problem!

Abhishek Kalamkar July 31, 2023

@Taranjeet Singh In the custom data, that is not typo instead that is text field, we can add any value there. Actually I was getting error that filter already exists so I started using in1, in2 and so on.

Suggest an answer

Log in or Sign up to answer