Forums

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

how to get new value for {{issue.security.name}}

Henrik Mikkelsen
Contributor
October 4, 2018

Hi,

I'm building a rule which will change the issue level security based on change in another value.

It's my first rule in automation. And it works!

Except that - in the end of the automation I wan't to inform the user in a comment that I've changed the Security level.

I've tried "... {{issue.security.name}}" which gives me the original security level. But I would also like the new security level.

I tried with  {{#changelog.issue.security.name}} {{toString}} {{/}} which only gives blank space.

Any ideas out there?

1 answer

1 accepted

0 votes
Answer accepted
John McKiernan
Atlassian Partner
October 4, 2018

Hi Henrik, 

congrats on your first rule! 

You are really close with this one. {{issue.security.name}} is the right smart value to use. 

If you put a 're-fetch data' action in after your 'comment' action, it should show the new security level. 

Screenshot at Oct 05 14-00-41.png

Let me know how you go,

Cheers,

John

Henrik Mikkelsen
Contributor
October 5, 2018

Hi John,

Thanks for a quick and good answer.

It works very well - although you need to put re-fetch *before* the comment-action.

Am I correct in that I can't use the changelog? What would be really nice would be to make a comment: "!I changed the security level from X to Y, because you changed field Z"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events