Automation rule which fill a custom field of the epic issue type with the project category

v_bixhi October 24, 2023

Hi everyone,

We are trying to create an automation rule which fill the value of a custom field of the epic issue type with the project category of the epic.

Is it possible?

I' have tried this but it doesn't seem to work.

automation.png

From the audit it goes on success but actually the field isn't valued.

Am I missing something?

Thanks for every suggestion.

Valmira

 

1 answer

1 accepted

3 votes
Answer accepted
Bill Sheboy
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 24, 2023

Hi @v_bixhi -- Welcome to the Atlassian Community!

What value are you trying to store in the Roadmap Owner field?

The smart value {{issue.project.projectCategory.name}} is the Project Category value, not a user.

Kind regards,
Bill

v_bixhi October 24, 2023

Hello @Bill Sheboy 

Exactly,  we want to store the Project Category value

Any suggestions 

Thanks

Valmira

Bill Sheboy
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 24, 2023

What type of field is "Roadmap Owner"?  If that is a user field, you cannot store a text value from Project Category there.

v_bixhi October 24, 2023

The field ''Roadmap Owner'' is not a user field, is a ''select list'' text field.

Bill Sheboy
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 24, 2023

In that case, I believe you would need to use advanced edit with JSON rather than the basic field edit.

The syntax for updating that type of field is shown here: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Single-select-custom-field

And so you would de-select Roadmap owner from the fields to change, and instead select the More Options area to add JSON for the edit, such as this:

{
"fields" : {
"Roadmap Owner" : { "value" : "{{issue.project.projectCategory.name}}" }
}
}

If that does not work, it is likely that either:

Like Bernhard BRUNNER likes this
v_bixhi October 25, 2023

Thanks a lot @Bill Sheboy  , it was related to this '' the value on the right side (from the project category) does not exactly match a value in your list.  The fix for this is to update one of the values so they match.'' 

I fixed this and it works.

Thanks again

Kindly regards

Valmira

Like # people like this
Bill Sheboy
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 25, 2023

Awesome; I am glad to learn that helped!

Like v_bixhi 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