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,369,723
Community Members
 
Community Events
168
Community Groups

How add current month into Summary and Description of an issue?

I'm using "Automation for Jira" to create recurring monthly tasks. It is working fine it creates issues each month on a certain day. However, I would like to add the month into the Summary and description. For example, if it's August the summary should be "It's time to following with Customer XYZ - August or August 2021", I'll add something similar in the description too with the month. How I can add a date variable that it's value gets change each month?

 

Thanks

4 answers

2 accepted

6 votes
Answer accepted

These work:

{{now.format("MMMM")}} = October

{{now.format("MMM")}} = Oct

Thank you @Brian KeefeIt works. How can I include the year, like  "October 2021"? Thank you for your help.

Never mind, I added YYYY and it worked. Thank you for your help. Here is the updated one.

 

 {{now.format("MMMM, YYYY")}}

Like # people like this

For reference, this page is linked in the Automation documentation that has all the different symbols and examples.

Hi @Brian Keefe 

per suppose we have "Aug2022" version is there, we release this version end of this month and we want to automatically create new version like this " Sep2022 ", is it possible?

1 vote
Answer accepted
Alex Koxaras Community Leader Aug 13, 2021

Hi @Shah Baloch 

You could use a smart value to insert a date (although I'm not sure you could add just the month)

https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/

You could add on your summary e.g. It's time to following with Customer XYZ - 1 August 2021" if you run your automation every 1st of the month.

Do you think you can work with that?

Hi @Alex Koxaras thank you for the quick response. For some reason, it's not including the date. Neither the custom date field displays date nor summary and description. Here is how I set it up.  Thanksdate_08132021.png

Alex Koxaras Community Leader Aug 13, 2021

Please paste your rule, as well as the results.

I deleted and recreated the rules and it worked. Thanks

Like Alex Koxaras likes this

Hi @Alex Koxaras ,

I read your answer and I have another question.
How I write the summary?

For example:
This issue was created on {{issue.created.format("dd/MM/yyyy")}}

and the result is?

This issue was created on 06/10/2021

Thanks!

Alex Koxaras Community Leader Oct 06, 2021

Yes that is correct. You can also use this

This issue was created on {{issue.fields.created.format("dd/MM/yyyy")}}

I have tried creating a ticket but I want to automate it with the option: Manage Scheduled Issues

I'll try the "Manage Scheduled Issues" with these summary.

Hi @Alex Koxaras ,

I write the summary with this text and when the ticket is created the result is:

Summary.PNG

Do I need a gadget or script to use this?

My idea is to create automatic tickets with the date in the summary.

Thanks,

Alex Koxaras Community Leader Oct 06, 2021

You can use smart values on automation. You can't use them in fields when creating/editing an issue.

Alex Koxaras Community Leader Oct 06, 2021

Where do you write this summary? Within an automation? Inside a workflow?

I have tried creating a ticket but I want to automate it with the option: Manage Scheduled Issues

I'll try the "Manage Scheduled Issues" with these summary.

Alex Koxaras Community Leader Oct 06, 2021

Do you have jira automation installed on your instance?

I don't know because I am not a Jira administrator at the company where I work.
I'll check this point.

Thank you @Alex Koxaras .

Like Alex Koxaras likes this

Hello @Alex Koxaras ,

I checked this point and we have Jira automation installed in our company but we have the lite version.

I don't know if this version supports this function ...

Thanks,

Alex Koxaras Community Leader Oct 07, 2021

I'm working on Cloud and this is pre installed as a native feature. I propose for you to try with the lite version and see. Smart values will work for sure.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events