Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

Automation of Epic, creation of tasks, then association of epic link to newly created tasks

I am moving a service management ticket over to a software project. When moving the service management ticket, we are setting it to an epic in a software project. The jira automation I have in place is to:

When issue is moved from project A - B

AND issue type is Epic

Create A, B, C tasks

Then update A, B, and C epic link to the original epic that moved over.

I cannot figure this one out. What is also weird, I can create a sub-task that gets associated to the epic, but not a story, bug, or task. 


3 answers

1 accepted

1 vote
Answer accepted

I've tried various way to get the child tickets that are created from the trigger to have the epic link to the trigger epic moving over from another project. Still no luck tying into that epic link for the child task. 

Screen Shot 2023-10-30 at 11.10.49 AM.pngScreen Shot 2023-10-30 at 11.10.57 AM.png

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.
Oct 30, 2023

Looking at the rule you have posted, are you trying to make the newly created Task a child issue of the trigger issue, epic?

If so, have you tried to set the epic link at the same time as the issue create?  Please show an image of that rule action.

What's interesting, the sub-task type logic works fine, but I want to create tasks under the epic, not sub-tasks. Subtasks work, tasks fail. 

 

Screen Shot 2023-10-30 at 12.18.24 PM.pngScreen Shot 2023-10-30 at 12.18.06 PM.png

Perhaps because I'm moving the ticket and not creating a new one, the logic is trying to find the epic link for the original ticket, which in this case it doesn't have one since it's a service desk ticket being moved over to a software project and converted into an epic.

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.
Oct 30, 2023

When setting the Epic Link in the issue create, you cannot copy from trigger issue because it is an epic (and has no parent epic).  My apologies if I was unclear!

Instead type in the smart value {{triggerIssue.key}} and it will appear below the field.  When it does, select it to use it.

Like Patrick Hendry likes this

It does create a task, but the epic link never gets associated. 

Screen Shot 2023-10-30 at 12.31.08 PM.png

Trying that now... "Instead type in the smart value {{triggerIssue.key}} and it will appear below the field.  When it does, select it to use it."

It worked!!!!!!!!Screen Shot 2023-10-30 at 12.39.14 PM.png

Like Bill Sheboy likes this

One last question. 

Just to reiterate my logic:

When ticket is moved from one project to another ->

When issueType = Epic ->

Create task with Epic link set to {{triggerIssue.key}} ->

Create 2nd task with Epic link set to {{triggerIssue.key}} ->

Then for the current issue (2nd issue created) create a sub task for that issue. 

The subtasks are being assigned to the epic, not the second child task created. Thoughts?Screen Shot 2023-10-30 at 12.50.02 PM.png

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.
Oct 30, 2023

At that point in the rule, "current issue" or {{issue}}, refers to the trigger issue still.

If you want to add subtasks to that second, created task, please change your branch to Most recently created issue.

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

Hi @Patrick Hendry -- Welcome  to the Atlassian Community!

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Kind regards,
Bill

Here is the audit: ACTION DETAILS: ["10139"]

ISSUE CONDITION The following issues passed: FUL-309

CREATE ISSUE Issues created successfully FUL-310

EDIT ISSUE Error editing issues FUL-309 (Could not find issue by id or key. (parent))

CREATE ISSUE Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored - Epic Name (customfield_10011) Issues created successfully FUL-311

EDIT ISSUE Error editing issues FUL-309 (Could not find issue by id or key. (parent))

CREATE ISSUE Issues created successfully FUL-312

Suggest an answer

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

Atlassian Community Events