Hi Here,
In my Jira instance due to legacy automation we have configured for auto resolving of issues after 3 days of waiting for customer, many of issues are left with no resolution.
Using the scriptrunner app I am aware that we can bulk update the resolution, but I want to update with the resolution with actual date each ticket was transitioned to Done/resolved.
can someone help/suggest please.
By seeing this article it gave me hope that it can achieved but not sure of the process:
https://community.atlassian.com/t5/Jira-articles/Jira-Heroes-How-Jira-Admin-Sue-Wilson-standardized-the-use-of/ba-p/2185991
If I understand correctly, you want to check for issues which were sitting on 'Waiting for Customer' status for more than 3 days and auto-close them along with setting the 'Resolution' field.
In that case, you can create the automation rule:
This will run everyday at 6:00 AM and checks for issues which were in 'Waiting for Customer' status and updated more than 3 days ago. If any issues were found, it will auto-transition them to 'Resolved/ Closed/ Done' and sets the 'Resolution' field accordingly.
Note that, your workflow should have valid transition from 'Waiting for Customer' to 'Resolved/ Closed/ Done' or at least the 'All' transition for 'Resolved/ Closed/ Done' status.
Hope this helps.
Thanks,
Vamsi
Hey @Vamsi Kandala ,
Yeah for upcoming issues resolving I thought if adding that scheduled automation rule. But if I schedule it will update all issues at a specific time which might have more than 300 issues at a time, and due to our automation restrictions, I have a doubt that it might not update all the issues..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There should not be a problem in updating more than 300 issues though it takes time to complete the process. That is why it is recommended to schedule it early in the morning so that there won't be any load in the system. We have similar setup in our company as well.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A few things that you need to confirm -
1) By default, resolution is always set via WF transition into the terminal status (Done/Close etc), where the resolution date is automatically populated. This is why when an issue is reopen, the resolution is typically reset to NULL and resolution date is also removed.
2) Using script runner to bulk update the resolution is essentially used to correct incorrect resolution value against multiple issues and not for setting resolution value in my understanding.
Are you trying to update those issues (from your legacy automation) where they are resolved, but the resolution field was not populated?. If so, then there may be an issue with the WF those issues are using. It means that they got moved into a WF status where the transition used didn't set the resolution value properly.
Can you provide a bit more information, so we can better assist you?
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Joseph Chung Yin ,
My Legacy automation is resolving the issue which were idle for 3 working days. But the issue is its not updating the resolution field.
As you know the issues without resolution field will not be considered as resolved issues, it giving us incorrect results during the report pulling.
I want to correct this for already resolved issues where the resolution was null with the actual resolved date.
Using script runner I can bulk update resolution where the resolution was null, but it will update the resolution date/time as current date/time. I don't want that to happen. It should update the already resolved issues with the actual resolved date/time.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I mentioned, by default the resolved date is populated at the time when issue's resolution value is provided. While using ScriptRunner is simply allowing you to update the resolution field.
You may want to using CSV batch update to set both resolution/resolved date
Key - Please make sure you have the correct date format while setting the date.
Here's the reference on formatting -
Here's the reference using CSV via external system import to conduct bulk update against existing issues -
https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-a-csv-file/
The above solution was mentioned by another community leader in a previous 2022 posting for your reference - https://community.atlassian.com/t5/Jira-Software-questions/Trying-to-update-issue-resolution-date-from-CSV-Import-but-not/qaq-p/1918618
Hope this helps.
Best, Joseph
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.
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.