Forums

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

Automation Description if user assigned

jonathank
Contributor
October 14, 2021

Hi All,

I dont feel this is a hard automation but I can not get it to work.

 

Workflow i want is on issue creation, If a user is assigned then the description will be updated to the following:


{{issue.description}}

{color:#36b37e}*Original Estimate:* Xh ({{issue.assignee.displayName}}){color}

 

If the issue is unassigned then it is update to:

 


{{issue.description}}

{color:#36b37e}*Original Estimate:* Xh (Staff Member){color}

 

This is a prompt to enter your name and estimation once you start a job. For the life of me I can not get the automation to detect when the assignee is "Unassigned"

 

I also tried removing the If statement and instead using {{issue.assignee.displayName | Staff Member}} as I found in another question but his does not work either. 

 

Screen Shot 2021-10-14 at 6.10.42 pm.png

 

Thank you!

1 answer

1 accepted

2 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
October 14, 2021

Hi @jonathank and welcome to the community!

Try the following rule, because I've tested it and works:

rule works.png

The problem with your rule was that even if the issue was unassigned, then the last component will be executed no mater what! Is outside of the if/else statement. So you will edit the description always.

jonathank
Contributor
October 14, 2021

Hahaha oh no. Thank you so much. I will go check this in the morning... What a rookie error :-/

Hopefully this will help someone else in the future!

Alex Koxaras -Relational-
Community Champion
October 14, 2021

No worries mate. It's easy to get lost in the UI if your are not familiar with. Especially if you have a long if statement with lots of actions. The line will get bigger ;)

Like jonathank likes this
jonathank
Contributor
October 20, 2021

Still shaking my head at the small text that says "Add Else" in my screenshot haha. This automation has been working great for a week now. Thanks again Alex!

Alex Koxaras -Relational-
Community Champion
October 21, 2021

Good to know that @jonathank and super hyped that this has been working our great for you!

Suggest an answer

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

Atlassian Community Events