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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation - Set "Epic Link" on Story to Epic created in the same automation

Hi!

 

What I want to do is to change the Epic Link property of a Story created within an automation, to be the ID of a cloned epic in the same automation.

In below the automation is triggered manually, to Clone a given epic and then we fetch the issue.key of that Cloned Epic, place it in a variable and set the story with that variable. However, according to the logs the {{createdissueID}} is getting the correct ID but when setting Epic Link on the Story, it renders an empty log and the story is created without any Epic Link.

What am I doing wrong here and is it possible?

Thanks!

/Jakob

 

JIRA.png

2 answers

1 accepted

1 vote
Answer accepted
Sandesh Shetty Community Leader Jan 05, 2021

@Jakob Agelin 

You can use smart value 
{{#createdIssues}}{{key}}{{/}} for the epic link field. Please find the bellow screenshot for the same.

epiclink.png

This was exactly what I was looking for. Difficult to find this answer anywhere.

 

Thanks,

Jakob

0 votes
Yvan Martin Atlassian Team Jan 19, 2021

HI Jakob,

Developer from Automation here.

I'm glad you solved your issue using createdIssues.

When using the "Most recently created issue" branch, the smart value of that newly created issue will be accessed as {{issue} for components in that branch. So in your case {{issue}} or {{issue.key}} should have worked. createdIssues is another way to access that key without using that branch.

Screen Shot 2021-01-20 at 9.49.40 am.png

Cheers.

Suggest an answer

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you