Forums

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

if child issue of an epic status is done then auto create new child under the same epic

Aysha.Mohammad
June 17, 2022

what will be automation rule applies for 

if child issue's status is done then automatically create new child under the same epic. 

3 answers

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 18, 2017

Your error message implies that the custom field you're reading is not valid for the issue type you are running the script against.

0 votes
Stefan Arnold
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 18, 2017

Check for Epic with if(issue.getIssueType().getName() == "Epic")

Worked for me fine.

Avin Singhal
July 18, 2017

Well dont know why it not working in console it working all well but when implemented in post fuction its give error but only in the case of epic creation as epic does not have any parent epic but when we create work package or task  it works just fine

Stefan Arnold
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 18, 2017

Maybe on wrong position in postfunction?

When i upgraded to Jira 7 i had to move my create-postfunction scripts that do something with issue fields from second position (behind "Creates the issue originally") to the first position (before "Creates ..").

Maybe try some position changes.

 

Edit: For me the check for issuetype is working in create postfunction when script is on first position

0 votes
Avin Singhal
July 18, 2017

Can someone have solution to this problem

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events