Forums

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

Automation - Transitioning Issues only moves the Epic but not the Tasks

Kevin Drescher February 24, 2023

Hello,

 

I think the question is clear, screenshot for details:

Bildschirm­foto 2023-02-24 um 14.53.15.pngBildschirm­foto 2023-02-24 um 14.52.55.png

 

I dont know why but the epics get transitioned correctly and the tasks stay in backlog...

 

3 answers

1 accepted

1 vote
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.
February 24, 2023

Hi @Kevin Drescher 

This symptom is caused by branch scoping: you are branching to the created epic so you can add the child Tasks, and later outside of the branch the newly created Tasks are not "visible" as created.

One possible fix for this is to remove the first branch, like below.

  • trigger: scheduled
  • action: create issue for your Epic
  • action: create variable (to save the epic key)
    • variable name: varEpicKey
    • smart value: {{createdIssue.key}}
  • action: create issue for your Task, and...
    • set the Epic Link to {{varEpicKey}}
    • To use a smart value for this field, type or paste in the smart value, and it will appear below the field.  When it does, select it to use as the field source.
  • action: create more tasks...
  • branch: on created issues
    • action: assign the issue
    • action transition the issue

 

Kind regards,
Bill

A follow-up: I find this behavior/symptom quite surprising, as branches on one-and-only-one-issue are described by Atlassian as run in-line, as if there was no branch, while multi-issue branches run in parallel and asynchronously.  Seems that guidance has some variation to it  :^)

Kevin Drescher February 27, 2023

Hey,

 

It kind of works, but somehow doesnt recognize the second epic. 

 

The second variable tries to use the first created task instead of the epic just created before.

 

Bildschirm­foto 2023-02-27 um 11.26.34.png

 

Like this

 

- Epic (Main 73)

---- Create Variable of most recent Issue = Main 73

-- Task (Main 74)

-- Task (Main 75)

-- Task (Main 76)

- Epic (Main 77)

---- Create Variable of most recent Issue = Main 74 ????

-- Task (Main 78)

-- Task (Main 79)

-- Task (Main 80)

---- Assign all Issues

---- Transition all Issues

 

What is going on here?

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.
February 27, 2023

Hi, Kevin.

Sorry, as I did not see in your rule you were creating multiple epics, with associated tasks. 

If you are trying to do this repeatedly (e.g., add an epic, add tasks, and link to that epic), you will need to repeat the pattern I suggested AND use a different created variable as a precaution.  Something like this:

  • ...
  • create the epic
  • save the key in a variable (e.g., varFirstEpicKey) with {{createdIssue.key}}
  • add the tasks, linking to {{varFirstEpicKey}}
  • ...
  • create another epic
  • save the key in a variable (e.g., varSecondEpicKey) with {{createdIssue.key}}
  • add the tasks, linking to {{varSecondEpicKey}}
  • ...

 

If instead I am missing something, please add an image of your complete rule, perhaps using a browser, scrolling image capture tool.

Kevin Drescher February 28, 2023

Can you make a screenshot of the 

part?

 

I thought that thats what I am doing already by logging {{createdissues.get(1).key}}?

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.
February 28, 2023

This is what I described earlier: first create an epic and then reference only that epic using {{createdIssue}} (note this is singular) and not the list of issues.

 

Capture.PNG

As you seem to be changing the scenario you originally asked (by adding more epics) I ask that you post an image of the complete rule in one continuous image.  Seeing the entire rule at one time will provide context to answer your questions.  (You can use a screen grab tool or browser addon to do this.)

Kevin Drescher February 28, 2023

Thanks, it worked. I used the "log" function and not the "create variable" function.

Like Bill Sheboy likes this
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.
February 28, 2023

Great!  So is the rule working as expected now?

Kevin Drescher February 28, 2023

Yes it does, thank you

Like Bill Sheboy likes this
0 votes
Najm Polaris
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 24, 2023

@Kevin Drescher ,

 

download (4).png

 

Add a transition step right after the task is created. 

0 votes
Kian Stack Mumo Systems
Community Champion
February 24, 2023

@Kevin Drescher

Is there a transition from the initial status -> ROCKANDSTARS?

 

Thanks,

Kian

Kevin Drescher February 24, 2023

Hey,

 

yes, the created issues (both epic and task) do not get a status when created and per default land in backlog. I then want to transition all of them to "rockandstars", which works, but only for epics somehow.

The tasks are successfully linked to the corresponding epics but they stay in backlog.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events