Forums

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

Using Custom Date field displayed in a Slack message Before and After

Stuart Harris September 29, 2021

I have a automation rule that posts to slack when a custom field is changed by someone who isn't on an agreed list. 

This works as 

if custom field 10012 is changed 

and the user isn't User A or User B 

then post the following message to slack 

Target Release has been changed on {{triggerIssue.url}} From *beforeState* to {{issue.fields.customfield_10053}} by {{initiator.displayName}}

I have 2 questions 

1. What can I use to post the before state of the field 

2. Can I display the display text not the ID 

 

1 answer

1 accepted

4 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
September 29, 2021

Hi @Stuart Harris 

Try using the changelog smart value! That will do the trick :)

Alex Koxaras -Relational-
Community Champion
September 29, 2021

And to be more precise, write this, but change "Client" to the custom field's name:

{{#changelog.Client}}{{fromString}} to {{toString}}{{/changelog.Client}}
Stuart Harris September 30, 2021

Doesn't look like this works with custom fields only the 3 listed

Available properties

  • {{changelog.summary}} - Changelog information for the Summary field.
  • {{changelog.issuetype}} - Changelog information for the Issue type field. 
  • {{changelog.status}} - Changelog information for the Status field.

have you managed this with any other fields? 

Stuart Harris September 30, 2021

Scratch that Ive got it working now Thanks! 

Like # people like this
kristi gray March 14, 2023

Do you mind sharing what worked for you? I am trying 

{{#changelog.customfield_10013}}{{fromString}} to
{{toString}}{{/changelog.customfield_10013}} 

and cannot seem to get it to work

Suggest an answer

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

Atlassian Community Events