Forums

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

How do I auto assign a component if a ticket is created by a specific user?

Unnati Patel September 27, 2018

I want to be able to auto assign a component is it is created by any member of a specific group. Is this possible? 

3 answers

0 votes
Raynard Rhodes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2018

I think if you use the default automation you can create something like this. 

 

It states when an issue is created and the reporter is raynard.rhodes then change the component to Active Directory. You can modify this how you need. Please let me know if this is what you need.

 

2018-09-27_16-22-24.png

Raynard Rhodes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2018

Also it seems you mentioned a specific group. For specific group the "IF" condition can be changed to 

reporter IN membersOf("Specific-Group-Name")
Unnati Patel October 1, 2018

Thanks, let me try that!

Unnati Patel October 8, 2018

How do I access Jira's default automation?

Raynard Rhodes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2018

If you look to the far left on Jira Software/Service Desk you should see this gear button. Afterward you should see "Automation"

 

farleft.png

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2018

Hello Unnati,

You can use the plugin Automation Lite For JIRA (Free for 300 executions per month) to achieve this functionality with a simple rule:

Screen Shot 2018-09-27 at 16.31.41.png

Unnati Patel October 1, 2018

writing creator = Unnati doesn't do the trick 

Unnati Patel October 1, 2018

it states - 

JQL condition

The following issues did not match the condition:DOM-9621

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2018

Hello Unnati,

Actually, you must add your username to the field creator. Is your username displaying as Unnati?

You can confirm it by navigating to your site administration and checking in the Users tab.

Unnati Patel October 8, 2018

can i add groups instead of individual users? 

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2018

Hello Unnati,

Unfortunately, the field Creator only receives the user which created the issue, not the group.

However, you can create a group picker custom field and add a workflow post function that will automatically add a group to the ticket based on the user that created it.

Performing the steps above, you will be able to run a JQL query using the custom field that determines from which group the creator belongs to.

Unnati Patel October 8, 2018

how do i create a group picker custom field? Is that within the add-on app or within Jira itself? 

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2018

Hello Unnati,

The Group Picker Custom Field is available on JIRA, you don't need to install any plugins to use it.

To add a new Group Picker Custom Field, you can navigate to JIRA Settings > Issues > Custom Field > Add Custom Field. It will be under the Advanced section.

Unnati Patel October 16, 2018

Hi Petterson, 

 

It looks like the automation is working as intends (i haven't tried the group picker field yet) however when users create an issue they sometimes add their own components - which is fine. The issue is when the automation kicks in - the automation removes the users preselected components and assigns the component per automation. It also removes assignee. 

 

For example, say the automation states that if `user A` creates a ticket then assign it component `Bug`. User A comes along and creates a jira > assigns it components: `testing` + `deploy-team` + `QA` and assigns it to a dev engineer. Currently, the automation will remove `testing` + `deploy-team` + `QA` and the dev engineer from assignee and assign the Jira ticket component `Bug`. Is there a workaround for this? I do not want the automation to remove  `testing` + `deploy-team` + `QA` and the dev engineer from assignee. 

0 votes
Joe Pitt
Community Champion
September 27, 2018

Not out of the box. I don't know of any plugin that would do it. If there is one it would probably be tied to what project role or group the user was in, not the actual user id. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events