Forums

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

Copy custom fields from subtask to parent

Naresh
Contributor
October 20, 2022

Have a parent and subtask issue, Datacenter 8.20.x

1) Need to write a "post function" on "Delivered" status (subtask), to copy the fields from "subtask" issue to parent issue.

For this it should satisfy (issue type Parent issue is story and status should be in "baselined")

 

Parent issue wrkflw

 

Parent workflow.PNG Subtask workflow.PNG

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Alex Koxaras -Relational-
Community Champion
October 20, 2022

Hi @Naresh 

Do you have any apps installed on your DC instance?

Naresh
Contributor
October 21, 2022

@Alex Koxaras -Relational- 

Yes Alex, i have  JSU, JMWE and scriptrunner

Using Datacenter 8.20.

 

Subtask --     wrkflw   ---     "Change Accep"  to   "Delivered"

Parent issue  wrkflw  ---      "Baselined"    to "Retired"

The below 2 points A)  and B) should be achieved when the status is in "Delivered" (Sub-task)

 

A)

In this it should satisfy 2 conditions before Copying the fields from current issue (sub-task) to the parent issue.

1st Condition --  parent issue status should be in "Baselined"  and in issuetype "ABC"

(where ABC is the issuetype in  Parent issue)

2nd Condition : the status of sub-task should be "Delivered"

if these 2 conditions satisfies fields values to be copied to "Parent" From "Sub-task"

 

 

B)  Also, there is a custom field called "Retired" (it is a drop down with options "true" or false") in the Sub-task issue.

Once  "A" (Above copying field values) are done.

 the value of "Retired" Custom field in the sub-task should be checked.

1st Condition --  If "true"  then automatically status should move from  "Baselined" to "Retired"    (This is in Parent issue transition)

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events