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

Smart values for Comment to Customer?

Brady Buttrey
Contributor
April 5, 2024

I'm trying to create an update frequency SLA and it is dependent on comments to the customer (not by the customer, or internal comments). Does anyone know what smart condition values I could use here? 

 

comment to customer picture.png

1 answer

1 vote
Kalyan Sattaluri
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.
April 5, 2024

Hello @Brady Buttrey 

Please see below thread by @Walter Buggenhout 

There is a smart value {{comment.internal}} which returns false if a comment if a cmment is visible to customers.

You can use it as a condition in an automation rules with the smart values condition like this:

  • First value: {{comment.internal}}
  • Condition: equals
  • Second value: false

https://community.atlassian.com/t5/Jira-Software-questions/Re-How-to-reference-Reply-to-Customer-or-public-commen/qaq-p/2620459/comment-id/925256#M925256

Brady Buttrey
Contributor
April 5, 2024

That seems to update the SLA when customers comment on it through the portal. I only what it to be agent comments to the customer, not vise versa. 

 

Kalyan Sattaluri
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.
April 5, 2024

Apologies, I dont think this value is exposed by smart values, you need to make REST call to get this info. If you are interested,  its the jsdPublic field within comment section.

 

image.png

Brady Buttrey
Contributor
April 5, 2024

Can I do this within the automations?

 

Kalyan Sattaluri
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.
April 5, 2024

Yes. You can do it within automation. But if you have not done this before, the hardest part is to gather your token info. If you have that, the rest is easy.

To gather your token, I am going to list the steps below, also reference Jira doc here.

  • Go to this link and create a token.
  • Then using your email,create a string useremail:api_token
  • Then, if you are in windowsOS, open power shell, put below by replacing bolded from above

$Text = ‘user@example.com:api_token_string’ $Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text) $EncodedText = [Convert]::ToBase64String($Bytes) $EncodedText

  • Then you get token.

If you can get this far. Rest is easy.

Suggest an answer

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

Atlassian Community Events