Forums

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

Copy 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 workflow

Parent workflow.PNGSubtask workflow.PNG

2 answers

0 votes
Margo
Contributor
October 21, 2022

@Naresh Do you have JSU add-on?

Naresh
Contributor
October 21, 2022

@Margo   Yes, i have JSU, JMWE

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)

Naresh
Contributor
October 21, 2022

Adding to the Above  ---  Also have scriptrunner for jira

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events