Hello,
I have created a rule that allows my team to transition tasks and issues from staging into production and it will create a version with an auto generated date. How do I reference that data to then have it put into the tasks fixVersion?
The system doesn't know the version because it hasn't been created yet. So I can't select it and have the automation just drop it in. I tried a couple ways but nothing appears to work.
If I tell the system to just go to the next release, it picks the wrong release (I have multiple releases going on at a time hence the date).
I was hoping to use When: version created but I don't know how to get it to take that version created and use that value and add it to the fixVersion field.
I was thinking about using another issue transitioned but then I couldn't get any components to work.
Thank you in advance for any help!
Using the solution above, I had to set the fix version field to just {{version}} instead of {{version.name}}.
For anyone who's come across this:
The suggestion from @Mark Chaimungkalanont does work, although the links don't point to the exact correct locations.
The Smart Value to be used here is {{version.name}} (no "issue" whatsoever), where the version from the "Created Version" trigger is taken, but it can also use the value from a "Create Version"-Action from the same automation rule.
So you can create a version, and then in a following "Create Issue" action (in the same rule) just write {{version.name}} into the fixVersion field and it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Florian,
I tried this solution with no success. What am I missing?
My rule goes like that:
Trigger: A transition being made
Action: A version is created
For JQL (filtering specific issues):
Edit: Fix Version with the smartvalue: {{version.name}}. It does nothing to the issues in the JQL
Thanks,
Nofar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sorry to hear that it doesn't work for you. I just tried what you did and it works. I'm on Jira Cloud, not sure if that has anything to do with it.
For me it looks like in the attached screenshot and worked that way. In the issue PT-3 the fix version was set to the newly created one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked eventually, I guess I was missing something there before.
Thanks!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately No, and my company is changing over from the cloud version to on prem. So, I left the tool in the current state until that transition happens.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey there Justin,
If you have a create version action, you can access your created version https://docs.automationforjira.com/reference/actions.html#create-version in subsequent rules using the version smart value https://docs.automationforjira.com/reference/smart-values.html#version
Hope that helps!
Cheers,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark - Did you read the entire question? Seems like maybe not.
I'm having this same conundrum. I tried doing a Version Created trigger that creates an issue, then setting the fixversion of that issue to be copied from the trigger issue. Seems like it should work but it doesn't. Maybe automation doesn't consider versions an "issue", therefore the trigger is invalid?
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.