Forums

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

inherit values from parent to subtask using script runner field

Walt Bajkowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2019

need script to inherit the parent status and create the subtask with the status of parent ?

1 answer

0 votes
Matias Stachowski
Contributor
July 22, 2019

You can make a Post Function in the workflow which can transition the status for you.

 

  1. Go to your workflow
  2. Click edit and select the "Create" transition and click on Post Functions
  3. Add new Post Function
  4. Select Script Post-Function [ScriptRunner] 
  5. Then select Fast-track transition an issue

 

If you want it to work for "In Progress" Status, you should set conditions as:

issue.issueType.name == 'Sub-task' &&
issue.parentObject.getStatus().getSimpleStatus().getName() == "In Progress"

 

and then select the relevant action for that status, in the simple example it would be "Start Progress" action.

 

You can make a post function for each status you would like it to work for.

 

Any other values you would like to copy can be added in the "additional actions"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events