Forge X-Force-Accept-Language header

Hi all,

I am trying to get response in another language than default from asApp() in forge using rest-api for JIRA cloud. Whatever I try to put in Accepted-Language is ignored and I always get fallback to default even if translation is present.
I tried with values: pl, pl_PL, pl-PL, but all in vain.

Can somebody confirm if language selection is working correctly when we are using rest API with asApp user or is it a bug?

return await api.asApp().requestJira(route`/rest/api/3/statuses/search?startAt=${startAt}&expand=usages`, {
                headers: {
                  'Accept': 'application/json',
                  'Accept-Language': 'pl',
                  'X-Force-Accept-Language': 'true'
}
              });

Regards and thanks for all responses.

I did a search and found this:

The issue mentioned (https://jira.atlassian.com/browse/JRACLOUD-76699) timed out and got closed. So maybe you are the latest victim of this bug.

2 Likes

Hello,
I can observer the same behavior.

Comment and vote for bug [JRACLOUD-76699] Priority and issue type name and description incorrectly provided by API - Create and track feature requests for Atlassian products. ) to be reopened.

1 Like