I am trying to update the the story points field on an existing story.
I can update the summary with my code (win!) but when I try to update customfield_10030 (story points) I get:
"customfield_10030": "Field 'customfield_10030' cannot be set. It is not on the appropriate screen, or unknown.
Looking at the forum it seems like some deep configurations can fix that - but I need this to be easy for the users to get started with so will not ask them to do manual config in order to let the app engage with a field they can edit manually.
I have tried to set overrideScreenSecurity as a parameter to the api endpoint but I am told that
Only Connect add-on users with admin scope permission are allowed to override screen security.
Question: is there any plans to let forge apps to get same privilege as connect to override screen security?
I have tried to use overrideEditableFlag flag gives a similar response:
“Only Connect add-on users with admin scope permission are allowed to override the editable flag.”. Not sure if this is relevant in my case, but it would be interesting to hear when forge will get the same privileges as Connect.
Code that successfully updates the summary of the story (for reference):
const url = route`/rest/api/3/issue/${key}`;
const req = await api.asApp().requestJira(url, {
method: 'PUT',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
fields: {
//customfield_10030: 3,
//customfield_10030: "5",
summary: new Date().toISOString(),
},
}),
});
const data = await req.json();
console.log(JSON.stringify(data, null, 2));