How can I go about using workflows to modify a cloned ticket? I need to re-set properties to default, but retain description and title.
Inside the default clone workflow I have this code:
if(ctx.issue.fields.Type.name == ctx.Type.Test.name) // If duplicated issue was a Test
workflow.message(workflow.i18n('I am inside the loop'));
newIssue.fields.SuccessState.name = newIssue.fields.SuccessState.NotTested; // Reset Test State - nothing happens
And these requirements:
name: 'Not Tested'
The original is cloned, loop is entered, but the newIssue never gets its property value changed. I'm guessing it's something like "you can't modify a new ticket from a workflow that executed on the original ticket." So do I need a new workflow? I can't find any guidance on how to make changes to a ticket on creation.
Thanks in advance!