I created an Initialiser script to put a table in a field as the default value. The 2nd column that is blank when created will then be updated as work progresses. The Behaviour works as an Initialiser or Server side if it is not limited to the Create Issue action.
If I put a condition at the start of the Behaviour it does not enter the default value.
if (getAction()?.id != 1) {
return // not the initial action, so don't set default values
}
I also tried setting the condition “When: Workflow Action: Create Issue (1) but this had no impact.
How can I insert the default table information without having it overlay the updates the next time the issue is edited?
Script runner - 5.6.14.1-p5
Jira 8.5.0