Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to auto-populate custom field with username who made the transition?

Salvi July 11, 2020

We have a field "QC performed by" and we want that field to be auto-populated with the usernames who made the transition. can someone confirm if there is any post function or other way available to perform this action?

2 answers

1 accepted

1 vote
Answer accepted
Martin Bayer [MoroSystems, s.r.o.]
Community Champion
July 11, 2020

There is no such postfunction by default. You can use script runner (https://library.adaptavist.com/entity/change-the-value-of-a-custom-field-in-a-post-function) or JSU App (https://marketplace.atlassian.com/apps/5048/jsu-automation-suite-for-jira-workflows?hosting=cloud&tab=overview).

If you don't want to pay for these App, you can write your own App with postfunction. Tutotorial by Atlassian which can help you to do this is here: https://developer.atlassian.com/server/jira/platform/creating-workflow-extensions/ (in Part 2. Create the workflow post function)

Salvi July 11, 2020

Thank you!!

0 votes
Anna
Contributor
December 8, 2020

Hi, by using {{initiator.displayName}} it should work I think

Anna
Contributor
December 8, 2020

or {{initiator.accountId}}

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
December 8, 2020

Hi @Anna I think you are talking about Cloud and Automation, but original theme is marked as "server" :)

Anna
Contributor
December 8, 2020

oups sorry. And you don't have automation on server ? 

Suggest an answer

Log in or Sign up to answer