. I tried other field methods, such as setOptionsVisibility, and they work.
So, is this an icon-related issue? or any permission required on the manifest.yml file ? where can the exact error log be found? Any insights or suggestions on this would be greatly appreciated!
Both the issuetype and priority field can be set when using the uiModifications.
Here is how you can do that:
// Change the value of the issuetype field to '10002'
api.getFieldById('issuetype').setValue('10002');
// Change the value of the priority field to '2'
api.getFieldById('priority').setValue('2');
The payload is just the id corresponding to the issuetype and priority, there is no need to add any additional scope to the manifest file or to add any of the additional fields (e.g. iconUrl, name, etc.) when calling the method.
The best way to troubleshoot similar issues is to check the Developer Console in your browser as all the errors are front end errors.