Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,461,335
Community Members
 
Community Events
176
Community Groups

Can I add variables to the Summary field for current month/year by utilizing Jira automation?

I am looking to replace "The Scheduler" with Jira Automation, however the business utilizes variables in their Summary field to generate the current month and year beside the summary's text. 

Example: Publish Accrual Report monthly metrics - ${createdDate.month} ${createdDate.year}

Can variables be scripted in Jira Automation in the summary field?

Cheers!

Jonathan

1 answer

1 accepted

3 votes
Answer accepted

Hi @Jonathan Smith -

This is definitely possible.

Publish Accrual Report monthly metrics - {{now.format("MMMM yyyy")}} 

(Edited after realizing that 1) I missed a closing parenthesis, and that 2) Jonathan actually wanted the current date, not the issue creation date.)

Darryl Lee Community Leader Nov 28, 2022

That should return:

Publish Accrual Report monthly metrics - November 2022
If you want to abbreviate the month, you can go with "MMM yyyy"
A good reference is here:

@Darryl Lee 

Thank you for the quick feedback. I've tried inserting that code into the summary field but am getting the following error:

Create Issue

Error rendering smart-values when executing this rule:
Failed to get value for issue.created.format("MMMM yyyy": Publish Accrual Report monthly metrics - {{issue.created.format("MMMM yyyy"}}

Suggestions?

x.jpg

Darryl Lee Community Leader Nov 28, 2022

Ah, I missed a closing parentheses! Sorry!

{{issue.created.format("MMMM yyyy")}} 

@Darryl Lee  The rule doesn't fail or show errors, but the date information does not display after the summary. (Again, I appreciate your assistance here.. it's a learning curve.)

y.jpg

Darryl Lee Community Leader Nov 28, 2022

I'm an idiot. You wanted the current date, not the issue's date. That would be:

{{now.format("MMMM yyyy")}}
Like Jonathan Smith likes this

BINGO! Thank you so much!

Darryl Lee Community Leader Nov 28, 2022

Great! I'm going to edit my original answer so people don't need to dig through all my mistakes.

Like Jonathan Smith likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events