Only allow current user to be assigned to custom user field

I need to track the person who completed the peer review on each story. I'm creating a custom single user field and need it to only allow the current signed-in user to assign him/herself to this field for audit purposes. Populating the field as part of a workflow step is not preferred since teams use statuses/workflows differently. Any suggestions?

1 answer

This widget could not be displayed.
Rachel Wright Community Champion Apr 18, 2017

Hi Janet,

I think what you're saying is (1) you need to restrict who can edit a custom field and (2) you need to restrict the value they can enter into the custom field.  I don't think you can do either out of the box, but you might check out the "Behaviours plugin" which is now part of "ScriptRunner for JIRA".  See:

I know you don't want to use a workflow transition, but I think that's a really good solution for your problem.  For true auditing value, you wouldn't want a user to manually add their name, you'd want the system to record it (and likely the timestamp) in the background.  Can you create a workflow just for this use case and project, instead of modifying the shared one other projects are using?


If you decide to go the workflow transition route, I recommend one field to capture the name of the approver and a second field to capture the date or timestamp.  Make sure to show both fields on the "View" screen, but hide them on the "Create" and "Edit" screens.  The "Suite Utilities for JIRA" add-on provides the needed workflow transition.  See:

For each approval transition, use an "Update Issue Custom Field" post function to dynamically set the approver value. The value is the name of the person who clicked the button. 

Example: The Peer Reviewer of the issue will be set to %%CURRENT_USER%%.

You can use a similar "Update Issue Custom Field" post function and the %%CURRENT_DATETIME%% notation to set the date field value.

I hope something in here helps you!

Rachel Wright

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

575 views 25 15
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you