Automatically set custom field value based on user group

My company's development model uses "channels" to funnel in new features, enhancements and impediments from multiple business units.  Some examples would be a 'Sales' and 'Customer Support' channel. The problem is each channel has access to every project/product. I know this isn't ideal, but that's not my call. 


I would like to find a way to automatically set a custom channel field's (single selection list) value based on the user group that creates the issue. So if a user from the 'Sales' group creates an issue, the 'Channel' custom field would be set to 'Sales'. 


I'm not a programmer, so I'd prefer a way to implement this within JIRA's admin rather than some JS in a config file. That being said, if there is no way to do this with JIRA admin, I should be able to highjack a devs time if there's some sort of roadmap to follow for implementation. 


Thank you for any and all suggestions

1 answer

Well, turns out you can do this as a post function from the create transition using custom user property values. 
JIRA allows you to add custom 'user properties' to each individual user. 

  1. Choose  Admin Cog > Issues
  2. Select User Management > Select User.
  3. Select Actions > Edit Properties.
  4. Input desired property key (channel).
  5. Input the new properties value. Example: User is in sales channel, so the value of the new property is Sales
  6. Select the Add button. 

Now you can use that new property to create a post function on the 'create' transition. 

  1. Click Edit for the workflow that has the transition you wish to configure the post-function on.
  2. In the Workflow Designer, select the transition.
  3. Click on Post Functions in the properties panel.
  4. Click on Add post function.
  5. Select Set field value from User Property value from the list of post-functions.
  6. Click on Add to add the post-function on the transition.
  7. Input the user property name in the Source User Property name field.
  8. Select the field name from the Destination Issue Field drop-down.
  9. Click on Add button to add the post-function to the transition.

Hope this helps somebody else. 
Thanks for reading. 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,316 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot