Hello,
I'm using Automation for JIRA to create rules that will auto-cut new dependent-linked issues from one ticket in into other projects to engage their related workflows.
Is there a way to insert the current date into the summary of the created issues?
This will add visual disambiguation in the event multiple issues are cut to the same destination project from the same source issue with identical titles. I noticed that "currentDate()" doesn't work in JIRA like it does in Confluence. Here's the "Summary" text I have tried:
{{triggerIssue.key}} | currentDate() | {{triggerIssue.summary}}
Thanks!
Found the answer: https://docs.automationforjira.com/working-with-issue-data/date-functions.html#formatting-dates
Doing it this way works:
{{triggerIssue.key}} | {{#now}}shortDateTime{{/}} | {{triggerIssue.summary}}
I swear I Googled a few things before posting. :) Anyway, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick reply! Is there a way to format that date value, such as MM/dd?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted]. I just finished testing, and unfortunately neither of those options work. now() and currentDate aren't substituted with their actual date valuees.
Here's the "Create issue" action I'm using, and everything works, except the Summary value of the created tickets looks like:
TEST-1 | currentDate().toString() | Test UTEST project story
Or
TEST-1 | now().toString() | Test UTEST project story
Any other suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.