With Automation, you can use this smart value to update a custom field
Example for Time to resolution SLA
{issue.Time to resolution.ongoingCycle.breachTime.jira}}
Best regards
Sam
Hi @Sonika Maddinapudi ,
What SLA data do you want copied exactly? Is it the target date/time? Or the time the SLA was met ? or something else ?
Best regards,
Kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kris Dewachter ,
My sla start counting from comment for customers and ends at next comment for customers and we didn't have any target date/time
In this sla the data is in the format of (due date centric format) Oct 30, 10:30 PM and I want this to be copied to my custom field (date and time picker format)
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sonika Maddinapudi ,
So your SLA has no goals time, and starts counting when a public comment has been set, and ends when another public comment has been set. I'm not sure how the SLA will react to that because you have the same start and end triggers.
But lets say that for example:
What value do you want stored in the custom field? Since the custom field is in a date format, i presume it's either the start- or the end-date ?
Best regards,
Kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kris Dewachter
In the above example you mentioned the value can be stored as Nov 30 2024, 5:00 PM in my SLA
Now I want this date Nov 30 2024, 5:00PM to be copied in my custom field.
I was attaching the screenshot how my sla was popping
I will give you the clear scenerio is I want to calculate how quickly we are responding to the customers through comments i.e we have 2 types of comments one is add internal note and second is reply to customer. Now when a ticket was raised an automated comment (reply to customer) is made by our team and after few analysis we will make a reply to customer in comments
Now the metrics is I want to find the diff between the two comments mentioned above. (first reply to customer to second reply to customer)
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sonika Maddinapudi ,
If you only want to use the SLA for reporting the time between comments, i would suggest one or two automation rules to do the calculation. Also, an SLA does not allow to distinct between an internal and an external comment.
So for the first automation rule, I would set a trigger when an internal comment is made and then store the current time in a custom date field.
And a second automation rule that is tiggered when a public comment is made. This one will calculate the difference between the current time, and the time stored in the first automation rule.
Best regards,
Kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Kris Dewachter
Could you please give the detailed steps for these automation rules because in triggers I was having only comment added, comment added during status transition, comment added while editing the issue fields.
Thanks
Sonika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sonika Maddinapudi ,
The first automation rule, that sets the current time when an internal comment is added, would look something like this:
1. The trigger is when a comment is added (any action)
2. The is statement checks if the comment is an "Internal" comment
{{comment.properties."sd.public.comment".internal}} equals true
3. In the "Edit issue" action, you set a "Date Time Picker" custom field with the current time by using the {{now}} smart value
The second automation rule is triggered when an external comment is added, and will calculate the different between the date in the custom field, and the current time with this formula. The automation rule has the same trigger, but you check for an external comment with this formula
{{comment.properties."sd.public.comment".internal}} equals false
And then this formula will calculate the number of minutes, between the current time, and the time stored in the custom field of the first automation rule. This is the formula:
{{now.diff(issue.<name of custom field>).minutes.abs}}
More information on date calculations with smart values can be found here :
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
Best regards,
Kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kris Dewachter
Finally my requirement was fulfilled.
Thank you for the detailed answers. It worked...
Thanks
Sonika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sonika Maddinapudi ,
Nice to hear my answer helped solve the issue.
Feel free to click the "Accept Answer" button next to my answer to help others in the community solve similar issues.
Best regards,
Kris
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.