Issue populating a LOCKED Field Category

Joe Tobey February 28, 2025

I have reviewed the Community answer on this, but I am not using the API, I am using the automation tool in JSM.

My goal is to populate the CATEGORY (LOCKED) field with a {{userInputs.<key>}} value.  I keep getting the following error:

"We excluded the configured field from this action as it couldn't be found: Category"

The parameter I am passing is {{userInputs.BuildID}} where BuildID is a value that already exists in the Category drop down.

 

What am I missing here?

1 answer

1 accepted

3 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2025

Hello @Joe Tobey 

Please provide a screen image showing your entire rule and the details of the step where you are trying to populate the field.

Is the field included in the issue's Field Layout? Can you set it if you execute the same action manually?

Joe Tobey February 28, 2025

I can manually Set it for an edit or new screen.

This is the section of the automation where I am applying the user input

Screenshot 2025-02-28 at 15.53.51.png

The input value for {{userInputs.BuildID}} is "build 2501".  Manually I can see the value (and others)
Screenshot 2025-02-28 at 15.56.02.png

The exact error is:

Screenshot 2025-02-28 at 15.58.17.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2025

It is possible that there is more than one custom field named "Category" across your instance and the Automation rule is unclear which one you are trying to reference.

Follow the guidance on this page to get the field ID associated with the Category field in the issues you are targeting.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Then use the More Options section of the action to set the field using JSON.

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

To set a single select list field you would need to use code such as the following:

EDITED:

{
"fields": {
"customfield_11449" : { "value": "{{userInputs.BuildID}}" }
}
}

 

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.
February 28, 2025

Hi @Trudy Claspill 

The end of the user input smart value is missing the closing double-curly brackets.

Kind regards,
Bill

Like # people like this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2025

Thank you @Bill Sheboy ! I fixed it.

Joe Tobey February 28, 2025

Thank you Both!

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2025

You're welcome, @Joe Tobey 

Did using advanced editing with JSON solve your issue?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events