I have a workflow where i can create an Epic or a Story at the end with a "Clones an issue, and links" Function with Scriptrunner. In the "additional actions" Field in this functtion i want to set the Epic Link for a Story or the Capability Link for the Epic. Its allways the same Epic or Capability, i just need to set the Link in the Postfunction, can anybody help me with this?
Hi, check this post which asks exactly this question: https://community.atlassian.com/t5/Jira-questions/How-to-set-issue-links-through-groovy-in-script-postfunction/qaq-p/713709.
In your case you will need a statement to check if it's an Epic or a Story as well.
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