Forums

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

[Project Automation] Using smart values in the summary field

Nicat Nagiyev April 29, 2020

Hello community,

I'm using the former codebarrol app "Automation for Jira".  Now I have following requirement for our monthly settlement process:

I creating scheduled tickets, which works fine. The issues are created on the last day of the month. Regarding the created date the summary should look like this:

Monthly settlemeant - mm-yyyy (from created date)

I tried to implement that with smart values, but it doesn't work. Is there any other solution for that?

I used this expression: {{issue.created.format("MM/yyyy")}}

Thanks in advance for your help.

Best regard,

Nicat

3 answers

1 accepted

0 votes
Answer accepted
Mehmet A _Bloompeak_
Atlassian Partner
April 29, 2020

Hi @Nicat Nagiyev ,

I think you can not get the "issue.created" value inside create issue action. Because at the time of  "issue.created" function call, issue has not created yet. Instead of "issue.created", try using "now".

{{now.format("MM/yyyy")}}

 

Nicat Nagiyev April 30, 2020

Thank you @Mehmet A _Bloompeak_ ! That works fine!

0 votes
Jack Brickey
Community Champion
April 29, 2020

Hi Nicat,

I was playing with this and I think I found a solution but TBH it is odd that you have to do this to me. So I created two actions in the rule:

  • create issue and add summary
  • edit the issue and choose the Summary field to edit. this is where you place your smart value as you have shared.

LMK if this works.

0 votes
John Funk
Community Champion
April 29, 2020

Hi Nicat,

Can you share some screenshots of what you have and what is not working?

Nicat Nagiyev April 29, 2020

Hi @John Funk ,

this is the rule I created:

grafik.png

The CRON expression is just for testing.

 

BR,

Nicat

John Funk
Community Champion
April 29, 2020

And can you share a screenshot of what is failing? Either from the Audit log or screenshot of the Epic?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events