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

If does not work after for each

Roumena Polianova
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2024

Hi Everyone,

I have an issue to create following automation. I need to create one sub-task for each component of a story except for a component with certain name. Here it is what I have done:
image.png

Unfortunately, it is creating sub-task even for SW_DI_ARCH like "does not equal" does not work. If I use contains the same value SW_DI_ARCH it is not creating even one task. Sounds to me that the matching is not written correct.

Can you help me to identify where is my mistake or how can I do it in different way.

Thank you,

Roumena Polianova

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.
June 24, 2024

Hi @Roumena Polianova -- Welcome to the Atlassian Community!

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 hypothesize your advanced branch looks like this:

  • smart value: {{issue.components}}
  • name: Skills

If so, when your condition tests against {{Skills}} that is comparing to the id value for each component, and not the name.  The reason is objects like components have a default attribute when only the object is referenced, and that is the id value normally.

To test against the name, please compare to {{Skills.name}}

Kind regards,
Bill

Roumena Polianova
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2024

Thank you very much! It works with ".name"

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events