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.
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.
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.