Forums

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

Copy epic link value to text box

RichardA October 6, 2021

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.

1 answer

1 accepted

0 votes
Answer accepted
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2021

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

RichardA October 6, 2021

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.

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2021

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

Suggest an answer

Log in or Sign up to answer