Forums

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

Workflow automation filter if Comment is puplic or not.

Pascal Ambros October 24, 2021

Hey jira community,

if got a question about how to update automaticely the status when i add a puplic comment. I found out that the field ist calld {{comment.jsdPublic}} an the status is true or falls for intern an puplic. i coud not figuer in wich step of the outomation i coud past it in. I saw some screenshots in the forum bevor but i think that there were not taken of the cloud version.

Thanks for helping me!

Best regards
Pascal

1 answer

1 vote
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.
October 25, 2021

Hi @Pascal Ambros -- Welcome to the Atlassian Community!

You have identified the smart value you need.  Now use an advanced compare condition to test it for the values you want.

If that does not help. please post images of your complete rule and the audit log showing the details of trying to run the rule.  That will provide some context for the community to offer suggestions.  Thanks!

Kind regards,
Bill

Pascal Ambros October 25, 2021

Hi Bill Sheboy,

thank you for helping me answring my question. Exactly this, I was trying bevor but could not get any reaction from the automation back.
In the following screenshots, you can take a closer look at what I did befor.

 

screenshot_75.jpgscreenshot_77.jpg

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.
October 26, 2021

I wonder if that smart value has more structure to it, or a different value than you expect.

Two things to try to learn more:

  1. Before your condition in the rule, add an audit log action to write out that smart value and see what is in it
  2. Use the information in this article which helps to identify the names and structure of smart values.  Basically, you find an example issue, use a browser to call the REST API to dump out all of the smart values, and then search for your field.

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

Pascal Ambros October 27, 2021

If I go to the REST API and search in the JSON I've managed to get this path: fields.comment.comments[0].jsdPublic

I've tried to audit log that value but it showed me nothing. If I try comment.body it gives me back the content of the comment but comment.jsdPublic is just empty.

Could it be that the jsdPublic attribute is just not in the smart values?

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.
October 27, 2021

comments[0] would be the first, not the last comment.

Your rule is triggered on issue commented, so to get the last comment's value for that attribute please try:

{{issue.comments.last.jsdPublic}}

After logging that, if you see no value, but you did see a value in the REST API response, the field may not be supported by automation.

You may also want to check the {{issue.comments.last.internal}} attribute, as I seem to recall that is related.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events