Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation advanced compare check not working

Musa Cuvarov April 14, 2022

Hi,

I have set the automatic creation of tasks and their sub-tasks at a certain time of day, it works fine.

Now I need to create another subtask for this task only if today is Monday, for that, I used advanced compare condition 

 {{issue.parent.created.format("E")}}

exactly matches regular expression

(Mon)

then create a sub-task, but it's not working.

Coud you please advise solution?

Thank you!

1 answer

1 accepted

1 vote
Answer accepted
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 14, 2022

Hi @Musa Cuvarov , 

so if you create a task on monday, a subtask needs to be created? 

As your condition is on the task itself, you don't need to refer to the parent. 

So the trigger would be "issue created" 

with an advanced compare condition of 

{{issue.created.format("E")}}

exactly matches regular expression

(Mon)

And then the create subtask action. 

- Tessa

Musa Cuvarov April 14, 2022

Hi @Tessa Tuteleers 

I have already tested the way you suggest, but it isn't working too...

For better understanding please see the screen

image.png

 

Thanks for responding.

Regards

Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 14, 2022

Hi @Musa Cuvarov , 

I see in your screenshot you still use the parent smart value. 

I made a quick test and for me it works like this: 

(of course I tested with Thu and not Mon since it won't work otherwise today :p ) 

Also, for testing purposes, please add a log action to your automation with the smart value in it, to see what it actually gives back. 

 

Screenshot 2022-04-14 at 17.19.34.png

Musa Cuvarov April 14, 2022

Amazing, It's works now👍

Great thanks!

Regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events