The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

{{issue.comments.last.body}} is pulling in as blank with my Slack Bot API App

Data Enthusiast
December 15, 2023

I have an automation to post a Slack message in a channel when a field is changed on a ticket.

The Slack webhook was generated through the Slack Apps API

This is the Slack Message action:

The priority for <{{issue.url}}|{{issue.key}}> - *{{issue.summary}}* was changed to {{issue.priority.name}}.

{{initiator.displayName}} gave this reason:
{{issue.comments.last.body}}

 

Everything pulls in perfectly except for {{issue.comments.last.body}}. It comes in as blank in Slack instead of putting the last comment.

Are there extra permissions I need to add to the Slack App for it to post the comment?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
eugenio_onofre
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 Champions.
December 18, 2023

Hi @Data Enthusiast

The syntax seems to be correct.
Have you tried using the smart value {{issue.comments.last.body}} out of Slack integration (example: in an internal comment) to see if the issue is happening on the smartvalue itself or on the integration?

Would you be able to place a screenshot (please hide API keys/authorization parameters) of your automation?

Thanks!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events