Forums

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

Setting assignment based on multiple field values

Kay July 16, 2019

I am trying to set the assignment of a case during transition based on multiple field entries.

At the point of creation of a case, I would like to automatically set the assignee based on the Custom Field "department" selected, and where the Custom Field "Cost" relating to these departments.

For example, where "IT" dept is chosen and cost = more than 2k it goes to Person A.  If less than 2k, to Person B.  

Where department "Marketing" and cost = more than 5k -> Person C and less than 5k -> Person D

Where department is anything else, cost value is ignored and is just assigned to specific individuals

Only these individuals would then be able to move the case to the next status

 

During creation of the case, I have set up two automatic subtask creations where the Custom Field "Vendor Type" is set to the value "New". No subtasks are created for any other value. 

I would like to automatically assign these subtasks based on type - is this possible?

As the case moves to the Approval stage, I would again like to set the Assignee based on the Custom Fields of "department" and "cost", but pointing to Person A and Person E

 

I am probably trying to do too much for each step, but I am hoping at least some of it may be possible?

1 answer

0 votes
Lady Di
Atlassian Partner
July 16, 2019 edited

Hello! If you know how to write scripts on groovy, then it is not at all difficult to do.
Here is a link to the scripts templates for Mygroovy: https://github.com/mailru/jira-scripts/tree/master/JIRA%20groovy%20templates

Just copy the pieces you need logically and compile your own script.

Kay July 17, 2019

Alas, I am lacking in the required technical savvy for such things, but I have other skills which may be handy here....

I shall simply hassle my devs until one of them caves :)

Suggest an answer

Log in or Sign up to answer