Forums

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

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

Louwrens Boshoff September 19, 2022

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 Champion
September 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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events