Dear all , the customfield is a multiple choice arrayand I have a 404 error in get api.
currently, I'm using :
url = f"{jira._options['server']}/rest/api/3/customField/{field_id}/{type}"
where jira._options['server'] are right and working in
response = jira._session.get(url)
options_data = response.json()
options = {
opt["value"]: opt["id"]
for opt in options_data.get("values", [])
}
for the field " Impacted CMEMS product" ( multiple chocies array) :
- the url is :'https://cms-change.atlassian.net/rest/api/3/customField/customfield_10034/array'
- the following error appears on the get : File "C:\Users\pname\workspace\jirapitbridge\src\import_excel_to_jira.py", line 384, in <module> jira.exceptions.JIRAError: JiraError HTTP 404 url: https://cms-change.atlassian.net/rest/api/3/customField/customfield_10034/array text: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you've found a dead link. - JIRA</title><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you've found a dead link.</h1><ul><li>Go back to the <a href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">
could you please have a look and give me explanation/ the right API get request. thanks a lot. - How to use this field when you create issue in JIRA ( post API) . could you provide an example?
- Many thanks. best regards. Christelle.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.