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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,871
Community Members
 
Community Events
184
Community Groups

Most Recent created issue key not found in automation

Using Jira Version 8.22.1 project automation

The Setup:

A 'story' Issue contains a linked 'test' issue of "tested by"

When the test issue transitions to a fail, it triggers a transition on the story issue which triggers this automation flow.

When this automation flow is triggered, I create a 'defect' issue using a current issue branch and link the defect as blocking to the story.

I then have a second branch "for linked issues", to the story, which targets the test issue.

The Problem:

I am attempting to link the test issue to the defect issue by using the 'most recently created issue' from the 'link issues' action, but the issue key of the created defect issue can't be found; however, it is in the log output.

 

There are several articles similar to this but none of the solutions work.

 

LOG OUTPUT:

jira.jpgjira2.jpg

1 answer

1 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.
Apr 18, 2023

Hi @Rai Warbasse 

I believe you are seeing this defect/symptom where the {{createdIssue}} smart value is not visible to the scope outside of an if/else or branch in which the issue was created: https://jira.atlassian.com/browse/AUTO-154

Without seeing your entire automation rule, my suggestion would be to consider how you might restructure the rule so the create issue action is at the same scope where you need the {{createdIssue}} smart value.  Please post an image of your entire rule if you want ideas to help with that.

Kind regards,
Bill

Thank you for that but it is contained with a single 'if' rule. Here is the whole view:

jira3.jpg

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.
Apr 18, 2023 • edited

I do not believe you need the For Current Issue branch as it is just nesting down from the trigger issue.  Instead you can just reference {{issue}} or {{triggerIssue}} as needed. 

Please try removing that branch to see if the {{createdIssue}} smart value becomes more visible to the branch below it.

Bill, you are a savior. That was the issue. removing the initial branch fixed it.

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.
Apr 19, 2023

I am glad to learn that helped.

I find this symptom/defect curious as my understanding was that branches on one-and-only-one thing (e.g., branch to current issue) get converted to in-line code, as if the branch did not exist.  Compare that to branches which could be on more than one thing (e.g., linked issues, JQL, etc.) which get run in parallel and asynchronously, in separate processes.  I guess the "branch scoping" rules outweigh the in-line stuff for this symptom.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events