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

Next Sprint in board should be tagged to the clone ticket

Gaurav Arora _Wipro_
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.
July 31, 2024

Hi All,

I am cloning an issue with automation rule on webhook trigger. Webhook data provides the issue to clone.

Now in the cloned issue, I want to add the next planned sprint (sprint with the earliest start date and if start dates not available, the sprint with smallest sprint id) of the board where the trigger issue's sprint is located.

Any idea how I can do it?

1 answer

0 votes
Bill Sheboy
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.
July 31, 2024

Hi @Gaurav Arora _Wipro_ 

As you have multiple criteria (i.e., start date and id) to select the Sprint for the cloned issue, the rule would need to use the Send Web Request action to call the Jira REST API to gather the sprints for the project, filter as needed, and then select the one to use.

Kind regards,
Bill

Gaurav Arora _Wipro_
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.
July 31, 2024

Hi @Bill Sheboy ,

Thanks for your response!

I am adding my automation rule as ".json" code here. Can you please help me on how can I make it better? I am cloning the issues in the first action and then working on the sprint logic. But am not able to figure out how to add the sprint to my cloned issue.

Bill Sheboy
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 1, 2024

First, I recommend removing that complete JSON for your rule.  Asking people to import you rule into their sites may be less helpful than posting images of your rule, the actions, and the audit log details.

 

Next, please see my original recommendation, try to implement it, and if you run into challenges explain what is not working as you expect.  Here are some references to help you get started:

Bill Sheboy
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 17, 2024

Hi @Gaurav Arora _Wipro_ 

I am following up to check if you tried the method by calling the REST API endpoint to find the sprint needed.

Thanks,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events