...
Expand |
---|
title | Delete custom fields in bulk |
---|
|
DELETE /rest/api/2/customFields Deletes custom fields in bulk. RequestQuery parametersids Required string A list of custom field IDs to delete. Example Code Block |
---|
| # This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
import json
url = "http://{baseurl}/rest/api/2/customFields"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = {
"Accept": "application/json"
}
query = {
'ids': '{ids}'
}
response = requests.request(
"DELETE",
url,
headers=headers,
params=query,
auth=auth
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) |
|
Expand |
---|
title | Get custom field options |
---|
|
Experimental GET /rest/api/2/customFields/{customFieldId}/options Returns custom field's options defined in a given context composed of projects and issue types. RequestPath parameterscustomFieldId Required string The ID of the custom field. Query parametersmaxResults string The maximum number of results to return. issueTypeIds string A list of issue type IDs in a context. query string A string used to filter options. sortByOptionName string Flag to sort options by their names. useAllContexts string Flag to fetch all options regardless of context, project IDs, or issue type IDs. page string The page of options to return. projectIds string A list of project IDs in a context. Example Code Block |
---|
| # This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
import json
url = "http://{baseurl}/rest/api/2/customFields/{customFieldId}/options"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = {
"Accept": "application/json"
}
response = requests.request(
"GET",
url,
headers=headers,
auth=auth
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) |
|
...
Jira architecture
Atlassian's architecture documentation will help you understand Jira fundamentals and get a high-level perspective of Jira's dependencies.
...