Hello,
I’m working on an automation to automatically send a message to a Teams channel whenever the status of a ticket changes. While I can achieve this, I need help retrieving the first status change along with the latest one.
I can find the latest status, but I’m having trouble identifying the first status. For example:
In Progress > Done
I need the status field key for “In Progress.” Can anyone assist me with this?
Thank you!
Welcome to community!
Referring to https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog-- , try using the below
{{changelog.status}} - Changelog information for the Status field.
This example shows the previous status for issues that are transitioned.
{{#changelog.status}}{{fromString}}{{/}}
Hi Fezila,
This is what I'm getting when i use changelog.status as response in Teams.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is exactly what I'm looking for, but I only need the first string and the second string. Is this possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thankyou alot, it works :) Found out how to do it withj {{changelog.status.fromString}} to {{changelog.status.toString}}.
Kind regards,
Mohammad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It sounds like you’re working on an interesting automation project! To retrieve the first status change, you may want to explore the ticket’s history or activity log. Depending on the system you're using, it might involve querying the history of the status field and pulling the earliest entry. For example, using an API that tracks changes over time can help you identify both the first and most recent status.
Speaking of processes, just like automating status updates for tickets, a florist in Las Vegas can benefit from automation in their business too. For instance, automated reminders for order pickups or delivery schedules can make the workflow much smoother and help keep things organized for customers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community.
You could use "status was" or "status changed"
See advanced JQL, jql-fields-Status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
I'm very new at JQL, do you perhaps have an example on how this is used in automation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nevermind, I used {{changelog.status.fromString}} to {{changelog.status.toString}} and it works perfectly!
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.