const result = await api.asApp().requestJira(route`/rest/api/3/uiModifications`, {
method: 'POST',
body: JSON.stringify({
name: UI_MODIFICATIONS_NAME,
contexts: [
{
projectId: '10100',
issueTypeId: '10500',
viewType: 'IssueView' <=== not working when viewing an Issue
}
]
}),
headers: {
'Content-Type': 'application/json',
Accept: 'application/json'
}
});
Maybe I'm not understanding what IssueView means? I thought it meant when I open an Issue from the Issues list and View the details. I need the ui modifications change event to work on both creating and viewing an Issue.
Notes
- when I changed the viewType I uninstalled the app from the test site, re deployed and re installed. Then flushed cache in browser to test.
- I get a 201 returned from the API call above on registering the uiModifications
- I tried several combinations of contexts, both together, multiple calls to the API, etc...
I'm out of ideas (and running out of time).