Forums

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

Jira Automation - Linked issue if they are in the same sprint

Georgi Nikolov March 20, 2023

I am doing some rules the idea si the following:

When an issue is created it should make the following checks:

1.If the type is BUG
2.If there are linked issues to it 
3.If any of the linked issues are part of the current sprint.

In that case if all 3 match , it should set the Sprint of the bug to the current sprint. I am receiving an error though , any help ? 

TinyTake20-03-2023-11-15-49.pngimage_2023_03_20T20_19_50_824Z.png

3 answers

2 accepted

0 votes
Answer accepted
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.
March 20, 2023

Hi @Georgi Nikolov 

Adding to the other answers provided...

The Issue Created trigger can happen so quickly that the data is not yet ready for other things, such as conditions and actions, leading to unpredictable results and rule errors.

When using the Issue Created trigger, it is a good idea to immediately follow that with the Re-fetch Issue action before performing any other steps.  This will slow down the rule by reloading the data, helping to confirm steps work as expected.

Kind regards,
Bill

0 votes
Answer accepted
Juan Carlos Vera
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.
March 20, 2023

@Georgi Nikolov ,

Try to put this JQL condition for the Sprint restriction, instead of "Issues in the sprint present"

sprint in openSprints() 
Georgi Nikolov March 20, 2023

Same error with this one.

0 votes
Trudy Claspill
Community Champion
March 20, 2023

Hello @Georgi Nikolov 

Can you provide a screen image of the details of the condition (IF: all match)?

I suspect that the problem is the third element of that condition but I would like to see the details.

Georgi Nikolov March 20, 2023

TinyTake20-03-2023-11-44-36.pngTinyTake20-03-2023-11-44-22.png

Trudy Claspill
Community Champion
March 20, 2023

The condition:

Related issues: Issues in current sprint: present

...is trying to confirm that there are other issues in the same sprint as the trigger issue. Since the trigger issue is not currently in a sprint, this produces an error. It also doesn't match the condition that you said you wanted which is

If any of the linked issues are part of the current sprint.

In that statement what are you referring to when you say "current sprint"? 

Like # people like this
Georgi Nikolov March 21, 2023

I managed to do it with Linked issues present and "

sprint in openSprints() 

" as stated in the previous comment. Thank you all!! :) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events