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

How to copy epic link field value from another linked issue?

Jurica Petricevic
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.
June 6, 2023 edited

Hi community,

 

i tried it all. I am sure i need your help for this one.

in our structure it look like this:

Epic

  Period

     Story

 

I need that Story gets the Epic Link from Period with every time link changes or we make movement on the structure.

 

Is this even possible?

 

Best regards

1 answer

1 accepted

1 vote
Answer accepted
Radek Dostál
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.
June 6, 2023

You need to implement event listeners (https://confluence.atlassian.com/adminjiraserver/listeners-938846909.html), either directly as a java/groovy code, or indirectly with perhaps automation for jira plugin.

 

This sounds like you want to do some specific/custom getters/comparisons, so unlikely you'll really get this without some coding. If you have ScriptRunner then you could create some event listeners which could be set up for ISSUE_UPDATED event, then you just check "was epic link changed?" if it was, you get the new value, and then you do a lookup for related stories, update them. That's it in idea, but practically may be more difficult especially without prior scripting experience.

Jurica Petricevic
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.
June 6, 2023

Hallo @Radek Dostál 

I did this with JMWE and Event-based actions where i added an Post Function Copy Field Value From Related Issues: The value of field "Epic Link" will be copied from each issue linked to the current issue through the belongs to period link type into field Epic Link to the current issue (replacing existing values).

 

With automation4jira i make an event changing one field with current time and that triggers my event in JMWE. It means movements on Structure makes that field becomes a timestamp and that triggers my JMWE event-based aciton. 

 

I think my problem was an Bug that i get every single time i use smart values in combination with Epic/ EpicLink and its like this: gh.epic.error.not.found.

 

Thanks 4 your help.

 

Best regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events