Forums

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

How to auto assign an issue to a user for a specific issue type based on component

Narasimha Charya Vedagopuram September 11, 2018

I need to assign a ticket to a specific user when a particular component is selected and this assignee is not a component lead or a project lead. I want this to happen only for a particular component in an issue type and for the other components for the same issue type should be auto assigned to another user.

Ex:

Issue type - CO-Task

Component = Analytics should be assigned to analytics approver user

Component != Analytics should be assigned to CO Approver user

1 answer

3 votes
Alexey Matveev
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 11, 2018

Hello,

You would need an add-on for it. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a post function for the create transition with a code like this:

if (arrayFind(components, "your component name") > -1) {

  assignee = "assignee name";

}

You can read more about post functions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Forpostfunctions: 

Narasimha Charya Vedagopuram September 11, 2018

Thanks for the quick response

Alexey Matveev
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 11, 2018

You are welcome!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events