Hi, I was wondering if it's possible to retrieve the status of an issue prior to the current one in an automation. I currently have the following two automations:
What I need to do is to transition the cloned issue to the status of the original issue before being "Done". I thought maybe I could retrieve it with the lookup issues and smart values, perhaps with something like "lookupIssues.last.changelog.status.fromString" or something along those lines, but I couldn't get anything I tried to work (possibly because the status of the original issue is already "Done" when the second automation is executed, I'm not entirely sure).
Do you have any idea if this is even possible? I'm relatively new to Jira, but I'll try to provide additional information if needed.
Thanks in advance and hope to hear from you soon.
Hi @Carlos Piña López -- Welcome to the Atlassian Community!
First thing: what problem are you trying to solve by transitioning the cloned issue to the prior status of the original? That is, "why do this?" Knowing that will help the community to offer better suggestions.
Until we know that...
There are several ways to do what you ask, including:
Before trying either of those, check if the workflow for the issue type allows transitions to from the first one to any possible status and if there are any transition conditions. Those will be needed for the rule transitions to succeed.
Kind regards,
Bill
Hi, Bill, thanks for the warm welcome.
As Vijay and you pointed out, the easiest solution would be using custom fields. I explained in my response to Vijay that I don't have permissions to create custom fields, but I managed to achieve my goal by storing the status as a label instead (this is only as a proof of concept). Apparently it was way easier than I thought.
Thank you both for your answers and have a nice day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I would suggest having one custom field and have one automation with a trigger when issue is trigged.
Have edit issue step and copy the current status name to custom field. please try n see if it helps!
Thanks
Vj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Vijay.
Thanks for your answer. Unfortunately I don't have permission to create custom fields in the project, but I managed to achieve my objective by using labels as a proof of concept. Here's an explanation if it can help someone in the future:
This seems to work fine as long as there are no more labels, but I'll try to get permissions and implement this solution with a custom field, it shouldn't be too different.
Thanks again for your time and have a nice day.
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.