Jira Cloud - Get application properties

Hi Team,

Does anyone have any idea about how to get application properties values in Jira Cloud architecture?

I did below in Server version. So, I need a way to do the same in Cloud architecture. Please help.

ComponentAccessor.getApplicationProperties().getString(“jira.timetracking.default.unit”);

Hi,

I have a similar problem with accessing REST resource but i need to get some other info:

jira.date.picker.java.format
jira.date.picker.javascript.format
jira.date.time.picker.java.format
jira.date.time.picker.javascript.format

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-application-properties-get

“Apps cannot access this REST resource.”

1 Like

Hi, @kanuwanak.

Try this endpoint rest/api/2/configuration (see documentation here). Kindly check defaultUnit in timeTrackingConfiguration if that’s what you need.

Cheers,
Ian

1 Like

Thanks Ian. Let me try that…

Thanks Ian. That works perfect!!!

This returns below result. That does my work.
/rest/api/2/configuration/timetracking/options

{
“workingHoursPerDay”: 8,
“workingDaysPerWeek”: 5,
“timeFormat”: “pretty”,
“defaultUnit”: “minute”
}

1 Like

Hi,

This problem affects us too and is raised here: https://ecosystem.atlassian.net/browse/ACJIRA-413

I hope this will be help.