Hello,
I am trying to generate the Summary field at "Create Issue" transition with a Groovy script.
The script is a post function before the step "Creates the issue originally." and works fine.
But after creating an issue, the reporter gets a message "Issue <Key> - <Summary> has been successfully created." and this message shows the old non generated summary.
How can i get the new generated Summary in this message ?
Thanks
Community moderators have prevented the ability to post new answers.
I don't think you can - the message is generated from what the users have entered on-screen, not read from the issue after it is created.
It's not expecting you to destroy the information the users entered in the field, and it's more efficient to simply keep what was entered than write it to the database and then go and re-read it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A better option might be to pre-fill the summary using the behaviours plugin and make it read-only.
Then you will get the right message, and the fact the user's summary has been wiped won't be surprising/annoying.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.