Hi Team,
if we select epic link value while creating story issue type, we need to copy epic link value and the same epic key(Epic issue key) to Linked_Value (Single text custom filed) after creating the story issue.
In my instance we don't have Automation Plugin and Copy field value post function as well.
So, can you help me how to copy field value from Epic Link to custom filed using script runner.
Could you please help me with this task?
Thanks.
Hi @RichardA
Use the Behaviour feature to identify whether the data is present in Epic Link Field and if the field has value add the logic to copy the value from the Epic link to the Custom field (Linked_Value) you have created.
Thanks,
Pramodh
Hi @Pramodh M Thanks for your response.
I am new to Groovy scripting. can you please help me with the script.
if you have any script on this, it would be very help full.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @RichardA
Try this and let me know if it's okay
Add the Behaviour and Epic Link as Field
def field = getFieldByName('Epic Link')
def fieldValue = field.getValue()
getFieldByName("Linked_Value").setFormValue(fieldValue)
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.