You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to set fixVersion of issue asApp but can't figure out how to.
My call looks like
const response = await api.asApp().requestJira(route`/rest/api/3/issue/${issueId}?overrideScreenSecurity=true`, {
method: 'PUT',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
but I'm receiving status code 400 with the message Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown.
When asking for my permissions calling
const getResponse = await api.asApp().requestJira(route`/rest/api/3/issue/${issueId}/editmeta?overrideScreenSecurity=true`);
An empty list of fields is returned.
I've tried updating the permissions but not 100% sure of what to change. I've added Application access to a number of permissions and selected the only option in the dropdown (Jira Service Desk). Is this the way to give my addon access?
The permissions I've given is:
Hi,
Welcome to the community.
Can you make sure that the field FixVersion is on the screen you try to edit.
What I can see it's on the screen. I'm going into Project settings and for my issue type I'm selecting Edit issue, is this correct? If so, Fix Version is on the screen.
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.
Hi,
can you show us the json body with the fixVersion ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Absolutely, I've tried bot with and without hyphens on properties to make sure that's not a problem.
const body = {
'update': {
'fixVersions': [
{
'set': [{'name': version}]
}
]
}
};
Running the same call asUser works fine but that's not an option since the call is made from a web-trigger called by an external system.
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.
Can you look if the user asApp have the right permission in the project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I wrote in my original post I'm not 100% sure of how I'm setting the correct permissions for the app. I can't find any specific user named asApp but I've added Application access (for Jira Service Desk which is the only option in the dropdown) for
Is it the correct user? What is the right permission?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How is it going? Is my setup correct? Any other ideas? Is it really supposed to be this hard to set the fix version via a web trigger?
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.