Is there a way to capture the previous "statusCategory" within an automation that is triggered based on a transitional change?
i.e. {{changelog.statusCategory.fromstring}} doesn't seem to work. Is there any other way to determine this?
I've worked around this by creating 2 automation rules, but if I could access the previous Status Category, I could combine and have a single automation rule for what I'm trying to do.
Hi @Gary Spross - Status Category is tied to the status so you would do something like this:
{{changelog.status.statusCategory.name.from}}
Hey @Mark Segall
Thanks for the response. I tried what you suggested, but no luck. I logged just the {{changelog}} and the result is:
Changelog: {resolution=[ChangeItemBean{fieldId='resolution', field='resolution', fieldType='null', from='null', fromString='null', to='10001', toString='Won't Do'}], status=[ChangeItemBean{fieldId='status', field='status', fieldType='null', from='10000', fromString='To Do', to='6', toString='Closed'}]}
So it looks like I can get the status, but not the StatusCategory, unfortunately.
It's no big deal. It would just be nice if I could've consolidated the logic, but it works the way I have it setup.
Thanks again for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hmm... Yeah guess it won't work that way. I know you can get the current status category by providing {{issue.status.statusCategory.name}} so I took a flyer on whether that would work with the change log.
The other option would be to capture the status name from the change log and then perform a send web request action to get the status category for that status. Here's the API you'd need:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, good call. I didn't think about doing a web request to figure out the status category from the status. 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.