I am trying to enforce a standard naming convention on JSM tickets and so I have the ticket summary hidden and populated with a default text. At the time of creation, you are required to fill out the custom field "Employee Name". I would like the employee's name appended to the front of the summary. Is there a script that I can run to do this?
Hi @Scott Federman - If you want this to be done with script runner, I'll have to defer to someone else in the community, but this can be accomplished with automation:
Note - This assumes you're using a user field for Employee Name. If you're simply capturing as a text field, you can omit the ".displayName" portion
Hey @Mark Segall I have no problem doing this with automation. The field is a standard text field, however. I have tried the formula above only it also accounts for the issue type and unfortunately I have had no luck.
I end up with the following
I use these settings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may need to put employee name in quotes:
{{issue."employee name"}} - {{issue.summary}}
If that doesn't work, I typically go with the actual custom field ID which would look something like this:
{{issue.customfield_xxxxx}} - {{issue.summary}}
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.
Excellent. Happy to help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.