Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you bulk disable custom field values from within Jira?

Andrew Zimmerman
Community Champion
April 15, 2020

I have a scenario where several hundred field values need to be disabled for a multi-select list custom field in Jira. Is there any way to bulk disable custom field values within the Jira interface, perhaps with Scriptrunner?

Or, is disabling values one by one the only way to handle this from within Jira?

Thanks!

Andrew

 

 

1 answer

0 votes
Gjermund Lunder
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2013

The problem was that I had to use POST, not PUT.

The payload got really simple:

{
'transition': {
'id': 81 # Resolved (for my setup)
}}
I now got HTTP 405. This is most probably related HTTP/HTTPS.
I found it much more simple to use urllib instead of restkit. See my final solution below:
import urllib
import urllib2
import base64
import json
key = 'MYISSUE'
#comment = "It's done!"
username = 'xxxx'
password = 'yyyy'
auth = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
data = json.dumps({
'transition': {
'id': 81 # Resolved (for my setup)
}
})
request = urllib2.Request(url, data, {
'Authorization': 'Basic %s' % auth,
'Content-Type': 'application/json',
})
print urllib2.urlopen(request).read()

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events