Forums

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

How to use Automation to Append the current Month value (i.e. "Aug") to the start of the Summary

David Tieman
Contributor
August 28, 2023

I am trying to use the date fields (like {{now}}) to find the Month value (i.e. "Aug") to append to the beginning of the Summary field.  I want to have an automation that will create work on a monthly schedule for the 1st of each month.

1 answer

1 vote
Trudy Claspill
Community Champion
August 28, 2023

Hello @David Tieman 

When you use the Edit Issue action set the Summary field to this value

{{now.format("LLL")}} {{issue.summary}}

The information about pulling the pieces (i.e. month) from a date field can be found in the details of the format command in this document.

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

You have to follow the link to the Java documentation for more detailed information about the proper formatting.

David Tieman
Contributor
August 29, 2023

Apologies for the additional message however, this doesn't appear to be working, as I am not seeing any change on editing the Summary field, no error received either.

Trudy Claspill
Community Champion
August 29, 2023

Please show us your complete automation rule and the details of the step where you are changing the Summary field.

David Tieman
Contributor
August 29, 2023

2023-08-29_12-40-33.png2023-08-29_12-42-37.png

Trudy Claspill
Community Champion
August 29, 2023

You have a typo in the smart value.

Screen Shot 2023-08-29 at 10.01.00 AM.png

 

You have an extra "s" in there. Also the "i" needs to be lower case.

David Tieman
Contributor
August 29, 2023

Sigh!! Thank you 

David Tieman
Contributor
August 29, 2023

I have this corrected now and the Summary is only showing the "Aug" value, it is not picking up and appending the previous value "CLONE - AUG: QA SAD Reload". :-(

Trudy Claspill
Community Champion
August 29, 2023

So, you are not getting "Aug <the original summary in the issue>"? Or you are getting that but that isn't quite what you want?

If what you are getting is not exactly what you wanted, please provide an example of what the summary would look like before and what you want it to look like after.

David Tieman
Contributor
August 29, 2023

The update is only providing the "Aug" text, I was hoping it would append the month, "Aug" to the front of the existing Summary text.

So for this test the existing Summary text is "CLONE - AUG: QA SAD Reload" (which I realize is a bit confusing to show CLONE) but the new Summary text would say "Aug  CLONE - AUG: QA SAD Reload"

Trudy Claspill
Community Champion
August 29, 2023

Can you show us the Edit Issue action details again please?

When I use the same code in my own automation rule it works exactly as you wish.

David Tieman
Contributor
August 29, 2023

Here is the Edit Issue step, also here is the Activity screenshot from the change completed by the Automation step.  Because the initial example was getting confusing with the "CLONE" text in the Summary I moved to another issue I was testing with, so the summary content is slightly different.  But the result is still the same.

David Tieman
Contributor
August 29, 2023

2023-08-29_14-53-41.png2023-08-29_14-57-39.png

Trudy Claspill
Community Champion
August 29, 2023

In your smart value it looks like you have a space between {{issue. and summary}} 

If that is the case, that explains the problem. You need to remove that space.

Smart values can be very sensitive. You need to make sure you are using the right case, and have spaced only where they are supposed to be.

Screen Shot 2023-08-29 at 6.59.30 PM.png

Like David Tieman likes this
David Tieman
Contributor
August 29, 2023

Thank you for your support and patience.  This is working as expected.

Suggest an answer

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

Atlassian Community Events