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,464,130
Community Members
 
Community Events
176
Community Groups

Automation - Linking Epic to Initiative when parent doesn't exist

Edited

Is there a way to automate epics so that if they do not have a parent initiative, they are automatically assigned? We will always only have one initiative per project, and want epics to be automatically assigned to that initiative in case that step is missed. 

We have this so far, but we need a way to automate the initiative ID, rather than hard coding it like we have here, "CST-8"

MicrosoftTeams-image (6).png

Resources used so far: 

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Linking-issues

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

2 answers

2 accepted

4 votes
Answer accepted
Mark Segall Community Leader Dec 02, 2022

Hi @Nikki Hylton - If you're looking to get the initiative dynamically, you could do something like this...

Just before your Edit Issues Action, add a Lookup Issues action

issueType = Initiative

For good measure, you probably want to make sure that there is only one Initiative so you could add an advanced condition of:

{{lookupIssues.size}}
Equals
1

Replace CST-8 in your Edit issues action with this:

{{lookupIssues}}

Exactly what we needed - thanks so much!

Like Mark Segall likes this

Hi @Mark Segall - thanks again for your help before! This worked perfectly within a project, but now we're trying to make a global rule across all projects. We have a global rule in place which is now searching for Initiative across all projects... so we'd like to modify it to lookup the Initiative in the same project  where the issue (epic) is being created. Any ideas?

 

Thanks again,

Nikki

Mark Segall Community Leader Dec 14, 2022

Yes, following the same assumption that there is one and only one initiative per project, you would change your lookup issues action to this:

project = {{issue.project}} and issueType = Initiative

Hi @Mark Segall,

Thank you! We tried that but it throws this error: 

MicrosoftTeams-image (7).png

Mark Segall Community Leader Dec 14, 2022

Maybe try this instead:

project = {{issue.project.key}} and issueType = Initiative
Like Nikki Hylton likes this

That did it- thanks so much!

Like Mark Segall likes this
1 vote
Answer accepted
Mikael Sandberg Community Leader Dec 02, 2022

Does the single initiative for the project live within that project or in it's own project? Is there anything in the initiate that identify which project it belongs to? If the answer is yes to either of these questions you could use the lookup issues action to get the issue key for the initiative and then add it to the epic.

The single initiative lives within that project. Lookup function worked - thank you!!

Nikki

Like Mikael Sandberg likes this

Suggest an answer

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

Atlassian Community Events