Hi all!
Simple groovy script on "Create Issue" with one line code doesn't work.
issue.description += "Test from Groovy"
OR
issue.summary += "Test from Groovy"
Log file is empty.
Any ideas why?
Thanks,
Sergey
If the changes should be done after the issue is created you have to add a
issue.store()
after changing the summary. Additionally you have to update the index via the IssueIndexManager.reIndex() method.
Try move the postfunction to the first position of post functions.
Because "Create the issue originally" creates and saves the issue to the database and the changes to the issue object should take place before this function.
Henning Tietgens, it's necessary to update description after issue creation. Is there any way to update issue's description after originally issue is created?
Maybe you could try without a reindex if you place the post function before the reindex and you are sure you're using the original issue object (like you do in your simple script in you question).
Henning Tietgens, thanks!
It looks like you're new here. Sign in or register to get started.