what will be automation rule applies for
if child issue's status is done then automatically create new child under the same epic.
Your error message implies that the custom field you're reading is not valid for the issue type you are running the script against.
Check for Epic with if(issue.getIssueType().getName() == "Epic")
Worked for me fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.