Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,116
Community Members
 
Community Events
168
Community Groups

Automation - Add dynamic comment data using the "Add comment to issue" action

I have repetitive tasks and when the criteria are met according to my automation rules, a text comment with JQL to explain to the assignee when the task is due must be added. I have used {{now.plusWeeks()}}, but it gives me a long date and time format.  Need to shorten this to just the month.  Any suggestions?

1 answer

0 votes
Mark Segall Community Leader Sep 19, 2022

Hi @Louwrens Boshoff and welcome to the community!

If you want to format the date to only show the month, you would just do something like this:

  • {{now.format("mmmm")
    • Returns September
  • {{now.format("mmm")
    • Returns Sep
  • {{now.format("mm")
    • Returns 09
  • {{now.format("m")
    • Returns 9

Suggest an answer

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

Atlassian Community Events