Forums

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

How to copy a value to the it's linked sub-tasks ticket?

Suresh March 1, 2018

Dear Team,

I am able to copy value to linked issuetypes by using JMWE plugin.

But, How can we copy a field value to it's linked subtasks.

Value should copy as follows:
Mainticket->linked issues->subtasks of linked issue.

2 answers

1 accepted

0 votes
Answer accepted
David Fischer
Community Champion
March 6, 2018

You can use a Scripted (Groovy) post-function with the following script, where you will, of course, need to replace the link direction name (with what appears on the main ticket's issue links section), the field name and the field value:

issue.getLinkedIssues("linktype").each { linkedIssue ->
linkedIssue.setFieldValue("fieldName","A value")
linkedIssue.subTaskObjects.each { subtask ->
subtask.setFieldValue("fieldName","A value")
}
}
0 votes
David Fischer
Community Champion
March 3, 2018

Hi Suresh,

you already asked this question on our helpdesk, to which we replied and are awaiting an answer from you. Once we iron out the details, we'll post the full solution here.

Suresh March 5, 2018

Thank you..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events