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!
currentDate() is probably a kinf of data which won't work in a string field like summary. Try something like
now().toString()
or
currentDate().toString()
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 @Cristian Rosas [Tecnofor]. 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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.