Dear Experts,
I am trying to create a post function using script runner(JMWE) using below script to prefix a custom field value to Summary.
issue.get("customfield_XXX") + " " + issue.get("Summary")
Above script is working fine when testing in post function groovy script console, but not working after publish. I added the post function after create event.
you need to use a Set Field Value post-function, not a Scripted (Groovy) post-function. And place it at the top of the list.
In the Set Field Value post-function, select "Groovy Expression" as the value type, and use your script as the value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @David Fischer , Actually I used a set Field post function but the result is displaying as code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to select "Groovy Expression" as the value type, not "Constant or Groovy Template"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much @David Fischer . I updated the code below and now it is working.
${issue.get("customfield_XXX")}: ${issue.get("summary")}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.
Read the story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.