Hello, I'm trying to deselect an option from a custom single-select field and it's not working:
DEL
Hi Felipe,
I understand that you have a connect app that is calling the endpoint of DELETE /rest/api/3/field/{fieldKey}/option/{optionId}/issue and shortly after that appears to complete, trying to then delete the option using DELETE /rest/api/3/field/{fieldKey}/option/{optionId} is failing.
Given that the first call is providing a status complete message appears to rule out my first suspicion that this async call was simply taking a long time to complete.
I'd be interested to see if you can lookup those individual issues in Jira to see what values they report having for that field. I'm thinking use the endpoint of GET /rest/api/3/issue/{issueIdOrKey} in between the first call and the second call. If those issues actually do have some replaced value stored to them here. If they do that would at least explain the error here.
Curious to learn more about the results here, or if trying to run that 2nd call again succeeds now.
Andy
I have the same problem Felipe reported. I did the steps you asked and the endpoint DELETE /rest/api/3/field/{fieldKey}/option/{optionId}/issue is really not having any effect. I'll show below the steps I tried.
1. Called /rest/api/3/issue/SKP1-7 to make sure this issue have the custom field with a selected option.
2. Called /rest/api/3/field/{fieldKey}/option/3/issue to deselect all issues with option 3 selected. As you can see below the response was already with status COMPLETE and progress 100. The modifiedIssues list show the ID of my issue correctly.
3. Called /rest/api/3/issue/SKP1-7 again, but customfield_10038 still have option 3 selected.
I even tried with api v2 but didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.