Hi,
I'm desperately in search for a way to have variables (smart values) to display in the titles of newly created issues by automation.
The situation is this: my automation creates every week on monday a new story. I would like that each newly created story has a variable in the title, f.e. numbering:
Story 01
Story 02
Story 03
...
I have found a way to f.e. add the due date (or any date) to the titles, but that's still not enough. I would like to have a solution that it can f.e. count how many issues has been created in the past using that automation and always count 1 up.
Another related question is, besides the date displayed in the title, is it also possible to just show the week number?
As you mentioned that the week number could be an acceptable solution, you can tweak your current solution by using a different format pattern.
The format() method accepts "w" to be replaced with the week number in that year.
I haven't tried, but try this:
TITLE {{now.plusBusinessDays(8).format("w")}}
I found a workaround to do some calculations based on the result of the week number. Or is there a function that could count the number of issues that has been created previously, or that already exist in the epics where this issue belongs to?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@brbojorque
We're using Automation for Jira.
It's an automation where it's creating a story each week.
The summary now is:
TITLE {{now.plusBusinessDays(8).format("dd/MM/yyyy")}}
otherwise, all the created stories would have the same name. But I don't like that formatting. I would rather have 01, 02, 03,... or week number: week 1, week 2, ...
the only unique identifier right now is the key or duedate of course.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don’t know of a way to do this with A4J. You might reach out to their support to see if it is possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ray ,
You have any existing script to start with?
What is your current setup? Automation for Jira?, Listener?, Postfunction?
Is there any unique identifier for each issue created? We can use regex or JQL so we need the identifier of the last issue created.
Adding the Week number is possible aswell.
Just need few more requirements just to clarify things.
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.