Forums

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

How to Access the same issue in Automation Rule

Muhammad Moazzam Hassan
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.
January 22, 2024

Hi, 

I am editing my issues via branch rule now after the branch I want to access the issue which is last update by this rule. Like there is an option like last created issue by this rule as same I want the issue key of the issue which is last updated by this rule.

1 answer

0 votes
John Funk
Community Champion
January 22, 2024

Hi Muhammad,

It is always best to post a copy of your rule which asking a question like this. Please do that and let us know exactly what you want to see at what step. 

Muhammad Moazzam Hassan
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.
January 22, 2024

Yes sure you are right.

PFA

image.png

John Funk
Community Champion
January 22, 2024

Thank you for sharing. What will you do with that key now? Can you not just add an action after the Edit Issue? 

Muhammad Moazzam Hassan
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.
February 8, 2024

I will lookup issue on the behalf of that issue key and than update then use their data.

Like John Funk likes this
John Funk
Community Champion
February 8, 2024

But what EXACTLY are you doing with the key? Where are you putting it with the rule? What field does it interact with? 

Muhammad Moazzam Hassan
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.
February 20, 2024

Basically what I am trying to achieve is to update the chain of Block issues,

Like A Blocks B blocks C Blocks D and carry on till 20, but there is a limitation in Jira that the Automation rule will stop after 10 Execution if it is calling itself, when the Due Date change on Issue A then it will update the start date and due date of issue B then C,D... and till the last one, but rule stops after 10th execution.

So I am trying to update 2 issues in one go, Like. 

Start and Due Date change of B then it will update C via branch then pass the C issue key outside branch then I will create another branch on the basis of the C issue key and Update D,

By doing this configuration I can update the chain of 20 Issues. 

John Funk
Community Champion
February 25, 2024

It sounds like you will need multiple rules to accomplish that because you can't next branches inside of each other. 

Muhammad Moazzam Hassan
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.
February 25, 2024

Yes, you are right.

But now I have found a solution, the variable value can be accessible outside branch and it can works for me, I think the automation rules has updated because few days back I cannot access the variable value outside the branch.

Thanks.

Like John Funk likes this

Suggest an answer

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

Atlassian Community Events