Is there a way to bulk-/mass-change the time zone in JSM Customers' profiles for a specific project?

timothy lee
Contributor
August 5, 2024

In JiraSM (DataCenter), we have projects for different regions, but Customer profiles are defaulting to the time zone globally set at the JiraSM level (GMT).  Is there a way to bulk-change the time zone for Customers in a specific project?  Maybe a back-end change?

Thanks, All!

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Tim Eddelbüttel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2024
timothy lee
Contributor
August 20, 2024

Thank you, Tim!

Sorry to be a bother, but how would I use this class - specifically the setUserDefaultTimeZone method - in a script(?) to bulk-change the time zones for the customers in just one project?

Thank you!

Tim Eddelbüttel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2024

Hi @timothy lee

in practise you have here 2 scenarios:

  • current users that have the wrong timezone -> Would be a one-time console script
  • new users or changes to users / projects -> Would be a event based script listener

In the best case you don't have to make decisions for a timezone base on projects itself. This would require a mapping and might be sometime also inaccurate or you have to deal with edge-cases that people have access to multiple projects with different timezones. If the instance itself is also connected to active directory (which knows the user configured timezone and also language) then this could be re-used and would be more accurate. 

Back to your scenario:

So looping through all users / projects, identify which users are in scope (customers and not agents!), have a mapping of project ABC needs Timezone XYZ, set the users timezone.

But if you are not familiar with such things, that can be too complicated.

So maybe a simple HTTP REST endpoint that takes a username and timezone (inside the endpoint, find the user, set timezone) would help as well and you can intercept this multiple times from whatever tool you prefer. Assuming here, that you know that user ABC needs timezone XYZ

Like timothy lee likes this
timothy lee
Contributor
August 23, 2024

Thank you, Tim E!

TAGS
AUG Leaders

Atlassian Community Events