Hey guys, how are you doing?
Here's what I need to do: from an incident or Service Request, to be able to create a Change or a Problem.
As I have just Automation for Jira, I'm addressing it this way:
I have 2 "general" transitions (the ones that go from any status to itself) on my workflow: Create Change and Create Problem.
Then, I have an automation which creates a change, with an IF to check is the status changed from it to itself ({{changelog.status.fromString}} == {{changelog.status.toString}}), but, this is triggering both automations.
I wanted to make an if clause, to check which transition was made.
Is this possible to achieve using smart values? Or any other if condition?
Hi Vando,
I'm well, thanks for asking. I see that you are looking to use some kind of smart value to distinguish these two different looped transitions. I do not believe there is any such smart value that will help in regards to being able to know the name of the transition called. The available smart values in Smart values - general simply do not extend to that info.
However I think there is a way you could make this work. I would actually look to adjust the workflow here. In Jira Cloud you could easily change the workflow for one of these transitions so that you could add a post function of type "Update Issue custom field" to one of these transitions. It could then change the custom field to some value that is unique to that transition. I recommend that this post function come before the one called 'Re-index an issue..' to try to make sure we avoid any race conditions.
You could then try to check for the existence of that custom field value on the issue to see which transition executed it. To make this work, you would need to also change the workflow of the other transition and give it a different value to set. That way the custom field could be overwritten by each of these transitions and in turn should only trigger the automation actions of the most recent transition.
Let me know if this helps.
Andy
Hey Andy!
Took me a while to get back to this, sorry!
I just did as you said, and it worked!
Thanks so much!
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.
That's cool, was looking for a way to make that happen too
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.