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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Issue Field condition

Hi I have a multi select dropdown country field and I am trying to assign Program Managers based on the country selected.

For this scenario I am trying JIRA automation, below is the use case:

If country field contains US then update PM(US) field
If it contains other country along with US then Update PM(Non-US)

for 1st scenario I am using Countries Contains any of US this works fine

I am not sure which option to choose if there is one or more country along with US and If I need to update PM (Non-US)

Thanks,

Sadhana

 

1 answer

0 votes
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.
Oct 26, 2023

Hi @sadhana_chittibabu 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

I believe there are multiple ways to do this, including:

  • use a regular expression with advanced compare condition
  • count the values in the list, remove US, and count again to compare the results
  • if/else conditions

Kind regards,
Bill

Hi @Bill Sheboy 
Thanks for your reply, Attaching the screenshots as you suggested:

One condition is: if countries field contains US, then Program Manager (US) has to be updated.

Another condition is: If countries field has the value other than US, then Program Manager (Non-US) has to be updated.

Note: countries field may contain both US and Non-US

image (1).pngimage.png

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.
Nov 01, 2023

Thanks for the screen images.  I recommend trying to post the entire rule in one image, perhaps using a screen capture tool or browser addon for scrolling capture.  That will ensure the rule pieces are shown correctly.

Just to confirm your scenario, do you have 2 or 3 PMs from whom to select:

  • if only US selected
    • use the PM (US)
  • else if US and another country selected
    • use the PM (non-US)
  • else (countries other than US selected
    • ???

If you only have PM (US) and PM (non-US), your rule could use the count of selected countries to help decide.  As the field is multiple-select, the size function can be used for that count in an advanced compare condition.

{{issue.yourFieldName.size}}

One challenge is confirming the smart value for your field.  Smart values are name, spacing, and case-sensitive, and do not always match the display name on the Jira page views.  You can confirm the smart value for your field using this how-to article:

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

Suggest an answer

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

Atlassian Community Events