status of JiraTicket no longer present in fields

James Tang October 31, 2023

Did the jiraApi recently change? I am no longer to fetch status of a jira ticket ("Open", "Pending", "Closed"). In the past these were values of the "Status" field. Now if you grab the fields of the jira ticket, there is no field of "Status"

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2023

Hello @James Tang 

What API call are you executing?

James Tang October 31, 2023

as an example:

ticket = JiraTicket("RECON-280819")
ticket.fields

there is no longer a STATUS key in the raw results, which makes it difficult for us to filter out certain tickets

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2023

Can you provide a link to the reference/source of the API library you are using?

 

The call you are making doesn't match the native REST API.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/

It doesn't match the Python library.

https://pypi.org/project/jira/

It doesn't appear to match the Node library.

https://jira-node.github.io/class/src/jira.js~JiraApi.html

James Tang November 1, 2023
from jira import JIRA
jira = Jira()
ticket = jira.fetch_ticket("RECON-279976")
'Status': None,

Is this helpful? A few weeks back 'Status' would reflect the ticket status: Pending, Open, Closed, In Progress. Now all tickets have a status value of None. And there are no other key values in the fetch_ticket function that return the actual status of a ticket 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2023

Unfortunately that is not terribly helpful to me.

I need to be able to find the source for the API library you are using in order to understand what it is doing.

The syntax you're using makes me think you are using the Python library I referenced, but I am not finding a reference to "fetch_ticket" in any of the three sources I listed.

The only reference Google found to "fetch_ticket" was from 2014 and references a bash shell script:

https://mondhs.github.io/en/2014/01/28/en-jira-rest-parsing/

Whatever API library you are using is providing some intermediate interface to the Atlassian-provided Jira REST API. We need to see the source for that library in order to try to debug what it is doing to try to retrieve issue Status information.

Do you have a link to some documentation that talks about the usage of "fetch_ticket"? That might be a starting point for us to find the API library source code.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events