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.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try move the postfunction to the first position of post functions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.