Hi folks,
I'm working with a workflow requirement to essentially stamp a read-only custom field with the username of the person who conducts a specific workflow transition. After a little bit of rudimentary research, it seems possible that I can add a post function to the transition and use scriptrunner for this.
Have you solved this before? What has worked for you?
Hi Patrick,
yes, they’re probably a variety of ways to do this, including an automation rule. Create a trigger based on issue, transition, then add any conditions you might need, then add a new action for edit issue.
Then, in the edit issue component, you can put in code, such as
{{issue.initiator.accountID}}
Adding a trigger is what I ended up doing, thanks for the suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great! Glad it worked for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can we do it with other users' details like the department? Like I want to fill the issue field with the reporter's department.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira can't grab the Department from AD or other ID systems directly like that. But you can use an add-on in some cases to populate a custom field in Jira with the Department or Location or Leader, etc.
Also, it's best if you create a new question for your circumstance so more people will see it and can respond.
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.