Forums

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

How to use smart values based on financial year to link epic to specific parent initiative

Wendy Chen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2022

Hello! For background, I'm trying to create an automation rule that says when an epic (with a certain label) is created, then a set of stories will be created under that epic. I want to link this epic back to the appropriate parent initiative, based on the financial year. How would I accomplish this with smart values? 

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
July 12, 2022

Hi @Wendy Chen 

What is the data point on which that financial year would be queried?  Is it a field on both the epic and Initiative or something else?

Wendy Chen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2022

The financial year is a field in both the epic and initiative. The name of the parent initiative also has "FY23" in the beginning. 

Mark Segall
Community Champion
July 12, 2022

Ok - Assuming you have a single initiative for each fiscal year, you could do something like this:

  • TRIGGER: Issue Created
  • CONDITION: Issue Type = Epic
  • ACTION: Lookup Issues
    • Issue Type = Initiative AND YOURFISCALYEARFIELD = {{issue.YOURFISCALYEARFIELD}}
  • ACTION: Edit Issue (Parent)
    • {{lookupIssues}}

If you have multiple initiatives for a given fiscal year, you'd still need to identify another vector that would help determine which initiative that epic should be tied to.

Wendy Chen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2022

How do I link the epic back to that parent initiative that it would look up? 

Mark Segall
Community Champion
July 12, 2022

Sorry I should've said parent link field.  This is not available from the drop-down of fields available on that action so you'll need to copy/paste this into the more options section:

{
   "fields": {
   "parent link": {{lookupIssues}}
   }
}

This should do the trick.

Wendy Chen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2022

Thank you so much!! 

Suggest an answer

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

Atlassian Community Events