Forums

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

Rule that assigns the ticket to a field & if this field is empty it will use another field

Tiago Pereira
Contributor
August 29, 2023

So an user asked me to create a rule that will assign the ticket to the user indicated in the filed "developer" which is already in place.

But as "developer" field is not mandatory in case this is not filled in, they would like to import  user from another filed "TI owner", could you help me w/ this please?

1 answer

1 accepted

0 votes
Answer accepted
Marc - Devoteam
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.
August 29, 2023

Hi @Tiago Pereira 

This can be done by using if/else function, but this requires, almost surely smart values or even the creation of variables and use this information

What kind of fields are "Developer" and "TI owner".

They should be user pickers, otherwise if they are simple text fields you would need to change them. As text fields can have errors like, typo's and non-existing users.

Are you able to give some more insight?

Tiago Pereira
Contributor
August 29, 2023

Hello @Marc - Devoteam 

This fields are single user picker fields

Marc - Devoteam
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.
August 29, 2023

Hi @Tiago Pereira 

You can build a rule like this:

Screenshot 2023-08-29 at 12.36.07.png

Use Multiple Issue events trigger, if required that the rule triggers on multiple events

Add a IF/Else action

I used a action in the IF to check if the field is not empty

Then I assign the issue by using the Assign Action and use the smart value option and use the value {{user}} (my user picker field.

You can to the same with your field Developer and then repeat the same options in the Else action for the field TI owner.

Tiago Pereira
Contributor
September 8, 2023

Thanks a lot

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events