In the post functions Script runner clone issues:
To Update Cloned issue Summary, the default script given is
issueInput.fields.summary = "${issueInput.fields.summary} was Cloned by my Script"
However i want to add parent key and value of field 'Country' from parent issue into the cloned issue summary.
i.e. I want country name from parent issue and parent key in Cloned issue summary.
For example: "India Issue-12 This is TEST issue".
I am running following commands but it is not working. :-(
1st command
issueInput.fields.summary = "${issueInput.fields.country} ${issueInput.parent.key} This is TEST issue"
2nd command
issueInput.fields.summary = "{{issue.fields.country}} {{parent.key}} This is TEST issue"
3rd command
issueInput.fields.summary = "{{Country}} {{parent.key}} This is TEST issue"
Please help.