Forums

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

Auto Assign based on cerain field value

Giorgos A Tsavegias
Contributor
January 12, 2022

Hi community,

Been trying to create an auto assign rule based on the value that a custom field gets. Eg when category is business application -> assign to User X. The thing is that cannot browse the total number of fields and as a result cannot get the field i need to read the value from. Any ideas of how can i by pass this obstacle;

Thank you in advance.

2 answers

1 vote
Alex Koxaras _Relational_
Community Champion
January 12, 2022

Geia xara Giorgo!

What exactly you mean by "the thing is that cannot browse the total number of fields and as a result cannot get the field i need to read the value from"? What and where exactly are you trying to auto assign the issues? If you are trying via Jira automation, then follow what @Jack Brickey propose. If you are trying somehow else, please define it.

Jack Brickey
Community Champion
January 12, 2022

I'm guessing that it is a long list of field options and clicking into the field shows some but not all. If there is no scroll bar then try typing a known but not displayed value. Just a guess here.

Giorgos A Tsavegias
Contributor
January 12, 2022

@Alex Koxaras _Relational_ 

Geia xara Alex,

Field.JPG

This is a custom cascade field with pre defined values. Through automation i want to set : when Categories = Business Applications then Assignee = User X. 

As i described, when the request is created (due to an automation) is assigned to me and right after is approved or not by me. In case i approve it and proceed to status TO DO, i want to change the assignee.

I might be missing something.

Thank you in advance.

Alex Koxaras _Relational_
Community Champion
January 12, 2022

Some fields are not supported via the drop down menu. You have to use the advance editing section below this field and use JSON to set the changes.

Giorgos A Tsavegias
Contributor
January 12, 2022

@Alex Koxaras _Relational_ thank you.

Can you please tell me where i can find the advance editing section in order to make the changes;

Thank you in advance.

Alex Koxaras _Relational_
Community Champion
January 12, 2022

Giorgos,

My bad. What you should use is an advanced compare condition (I thought previously that it was an Edit action), and that field's smart value in order to compare it with its value:

advance compare.png

Then after that IF, edit the issue and assign it to your likings.

Let me know if that works!

Giorgos A Tsavegias
Contributor
January 13, 2022

Hi Alex,

I have created the automation like :

1. when issue transitioned from approved -> to do

2. IF categories = BA

then assign to USER X

ELSE IF categories <> BA

then assign to USER Y

What it does is to by pass the IF statement and applies only the ELSE IF.

Manually, inside the ticket i can change the assignee to USER X for BA.

1 vote
Jack Brickey
Community Champion
January 12, 2022

Hi @Giorgos A Tsavegias , are you using automation to configure this? I believe you should be able to choose this using automation it would look something like below:

  • trigger - value changed for your custom field
  • condition - use if/else block along with field value custom field equals xxx
  • Action - edit issue and assign
Giorgos A Tsavegias
Contributor
January 12, 2022

Hi Jack.

The default assignee is myself (Automation 1). Right after its creation there is an approval status. If the request is approved (i am the approver) proceeds to TO DO else DONE.. At this part of the process i need to assign it to the proper assignee.

I tried to implement your recommendation but yet cannot see the custom field.

Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events