How do I set default assignee to a custom field in my project?

3 answers

0 vote
Tarun Sapra Community Champion Aug 12, 2016

Hi Tarun,

I have created a project and I want it to be automatically assigned to the business owner which is one of the fields I added when I create an issue under this project. Whatever, I fill in the business owner field, I want the issue to be assigned to the same person. How do I achieve this?

Ignacio Pulgar Community Champion Aug 12, 2016

You may create an Automation Rule like this:

WHEN: Issue Created

IF: Issue matches "Business Owner" = bob

THEN: Edit issue > Field: Assignee > Value: bob

Finally, add some more IFs with different THEN actions.

Tarun Sapra Community Champion Aug 12, 2016

Do you have some plugins installed, as the functionality you want requires a plugin.

Hi Tarun, no I do not have any plugins.

I will try it out! many thanks smile

Tarun Sapra Community Champion Aug 12, 2016

Ok, Please upvote/accept the answer if it works out for you, thanks.

0 vote
Ignacio Pulgar Community Champion Aug 12, 2016
Assuming you need to set the issue's assignee with a different user depending on the selected option in your custom field:
 
You can use the built-in project Component(s) field instead of a custom field:
  1. Create one component for each value you would otherwise set in your custom field.
  2. Configure the component leads.
  3. Set 'Component Lead' as the default assignee as per your needs.
Other approaches for your custom fields might also be possible through the inclusion of a post-function on the desired transition, but those are subject to have changes in a near future because of the upcoming removal of JMWE addon.
I have just noticed the presence of labels that suggest your project is a Service Desk one.
If you are using a Service Desk, all said above is still true, but you also have more options at your disposal, like creating a Custom Automation Rule with different conditions for editing the assignee field with a different value.
For example, we could set the assignee depending on the value of a custom field named Customer:
automation.png
You might need to create several IF conditions for each different user you would like to set as the assignee.
Hope it helps.

Thanks a lot for the detailed answer. Very helpful. But one question- I do not see automation option under my project settings. Please check image.Capture.PNG

Ignacio Pulgar Community Champion Aug 12, 2016

That project is a Business one (JIRA Core) and not a Service Desk one; that's why.

Maybe, you have more options available on that screen's project type, like Software and/or Service Desk.

I assumed your project was a Service Desk one because this question contains the labels: jira-servicedesk and jira-servicedesk-cloud.

If the project is not os type Service Desk, then the Automation Rules are not available on the project at all.

So, I would recommend creating components with the name of each Business Owner, set the username of the BO as the component lead, and set each component to be assigned by default to the component lead.

0 vote
Tarun Sapra Community Champion Aug 12, 2016

If there are no plugin, then default assignee can be based on "Component Lead" being the default assignee but you would need to use that specific component in your issue. But in your case you want it to be assigned to the "business owner", thus you have to select the component which has the component lead the business owner which you have filled. That way the business owner will become the default assignee. 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

127 views 0 2
Read article

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