Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation Rule - Custom field missing in value picker Edited

Hello

 

I'm trying to set a Custom field value in Automation rule, but it is not listed in the field value picker.

 

The filed is a Select List (cascading) with a few options to choose.

 

Please help.

1 answer

1 accepted

0 votes
Answer accepted

Hi @Sai Nepadhya Gurram 

Cascading select list is currently not supported there to be picked up from the field list.

But you can update the value using the 'More options' --> 'Additional fields' textbox available. Follow the REST API call format for updating values.

Example below (insert the values into the <> tags as needed)

"fields": {
        "<field name>" : { "value": "<value1>", "child": { "value" : "<child value 1>"} }
       } 
}

Hello @Gikka 

Many Thanks for your response.

 

I am sorry , but I couldn't find the 'More Options' field anywhere.

 

Regards,

Sai

Hi @Sai Nepadhya Gurram 

Sorry, I thought you were trying to 'Edit' the issue to set the value for field.

To define the 'If' rule for Cascading select, you can choose the 'Advance compare condition' option and write REST API check for a cascading select.

Place the custom field ID for the cascade select list in the rule below.

For parent value: {{issue.customfield_xxxxx.value}} equals value1
AND
For child value: {{issue.customfield_xxxxx.child.value}} equals child1

Cascade.png

Like Sai Nepadhya Gurram likes this

Hi @Sai Nepadhya Gurram 

You can also use the 'JQL condition' available to run a query to check for the custom field values.

Like Sai Nepadhya Gurram likes this

Thank you so much @Gikku 

Advance compare condition works.

Much appreciated.

@Gikku  

Sorry I am new to REST API 

Can you suggest me if I can add OR condition in the value filed 

 

For eg :

 

 {{issue.customfield_xxxxx.child.value}} equals child1 or child2 or child3

Hi @Sai Nepadhya Gurram 

If for multiple values, better to use JQL then.

'<field name>' in (val1, val2 ..)

Like Sai Nepadhya Gurram likes this

@Gikku  How would one search for JQL for the childvalue though? I'm not actually certain I know of a way that would pull that off?

 

I'm trying to do something similar to what Sai was doing here, where I'm concerned with the childvalue being 'None' and trying to enforce it by moving the issue back to a previous status when it is blank.

 

However, I don't seem to be able to get {{issue.customfield_xxxxx.child.value}}  equals <anything> to trigger an event and was going to try the JQL before realizing I can't seem to come up with JQL that looks at the child value.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you