Forums

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

I need to be able show just the month in the automated task creation using smart values

Shreyanth Reddy Bezawada
Contributor
October 1, 2020

I want to create the task titled "Monthly recurring tasks for the month of <current month>". Is there a possibility for us to be able to create it using smart values?

 

I have tried using "Monthly recurring tasks for the month of {{now.format("MMMM")}}" based on java pattern documentation. It does not seem to create it on a similar manner. Is there a smart value that could pull up just the Month or just the month and the year?

 

Any help would be appreciated. Thank you.

1 answer

1 accepted

0 votes
Answer accepted
Niranjan
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.
October 1, 2020

@Shreyanth Reddy Bezawada  - Could you try {{now.monthOfYear}} ?

Shreyanth Reddy Bezawada
Contributor
October 1, 2020

This shows just the number of the month and not the name of the month. I tried this as well.

Niranjan
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.
October 1, 2020

Ok. Then you can consider using this format {{now.format("MM/yyyy")}} . This can get you month and year I suppose (in numeric forms)

Shreyanth Reddy Bezawada
Contributor
October 1, 2020

Thanks Niranjan, I currently have that as my work around. Just wondering if there was a pattern out there that I might be missing. Thank you for your suggestions.

Niranjan
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.
October 1, 2020

{{now.format("MMM")}} - How does this work?

Like Sravan Indukur likes this
Shreyanth Reddy Bezawada
Contributor
October 1, 2020

Perfect, This works.

Shreyanth Reddy Bezawada
Contributor
October 1, 2020

{{now.format("MMMM")}} - This gives out the entire month name. Thank you for your suggestions

Like # people like this
Niranjan
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.
October 1, 2020

Cool. Glad it worked!

Bill Sheboy
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.
October 1, 2020

Hi @Shreyanth Reddy Bezawada 

I pasted in your smart value and it worked for me in a log message:  {{now.format("MMMM")}}

This may have something to do with the task title field.  So, maybe break this down into steps for fault-isolating this:

  1. Try it in a log message to confirm the smart value works
  2. If so, try setting this value to a variable (using the action Create Variable) and then create the task with the value in the variable...which will only be a text string.

 

Best regards,

Bill

Like Andre Schmidt likes this
Shreyanth Reddy Bezawada
Contributor
October 1, 2020

Thank you for the headsup Bill. I made a few changes to the setting and it worked.

 

Regards,

Shreyanth.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events