Product Discovery Timeline Date Field Formatting in Automated Message

Jim Delloso December 15, 2022

In a Jira Discovery project, we have a Date field that allows users to choose a Day, Month, or Quarter.  We've titled the field with the word "Month" to direct our users to choose a Month.

Now, I am trying to write an automation that triggers upon editing an issue.  It will display the contents of this field in a Slack message.

  • Variable in Automation Message Component (Send Slack Message):  {{issue.estimated actual ga month}}
  • Value of Field:  December 2022
  • Return Data: {"start":"2022-12-01","end":"2022-12-31"}

Is there formatting I can apply to change the Return Data to: December 2022 or 12/2022?

I tried appending format("<pattern>"): {{issue.estimated actual ga month.format("MM/YYYY")}} but it returns nothing.

Thanks in advance.

1 answer

0 votes
Gokaraju gopi
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.
December 15, 2022

@James Delloso 

Try below code

{{issue.estimated actual ga month.start.format("MM/YYYY")}}

 

Jim Delloso December 16, 2022

@Gokaraju gopi 
Thanks for the help.  Unfortunately, it does not work.  It returns no value.

I also tried 

{{issue.estimated actual ga month.start}}

and it returns no value as well.

Yong December 29, 2022

yes, the above method doens't work @Gokaraju gopi 

Suggest an answer

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

Atlassian Community Events