How to use JQL to extract a single comment on a ticket

dxiong November 13, 2023

Hello,
I am working on an automation to from Jira to send a message to slack about any comments made on a ticket. I gotten close but the when a comment is made on the ticket, it sends the message to our Slack bot with all comments made, not individually. The command I have below is: 

<{{issue.toUrl}}|*{{issue.key}}* {{issue.summary}}> has commented:
{{issue.comments}}

 

I know it has to do something with {{issue.comments}} and maybe the plural is the issue. What got as a result is this. Thank you!
Screenshot 2023-11-13 141037.png

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Murat Seven
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.
November 13, 2023

Hi @dxiong and thanks for your question.

 

The expression in the screenshot appears as {{issue..reporter.displayName}}, but it seems to be incorrect. Could you please adjust it to {{issue.reporter.displayName}}?

dxiong November 14, 2023

Hi @Murat Seven 
Those were previous errors made in the comments. The screenshot is just the end results from the command 

<{{issue.toUrl}}|*{{issue.key}}* {{issue.summary}}> has commented:
{{issue.comments}}

It just bunched all of the comments together so we get disregard those as I've made the adjustments. I am just looking to do individual comments last made if that makes sense 

TAGS
AUG Leaders

Atlassian Community Events