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

0 votes
eugenio_onofre
Community Champion
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!

Suggest an answer

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

Atlassian Community Events