We have a custom field within jira service desk which holds the organization. Currently I'm trying to return the organization from the issue object returned by my jira search.
However when i try to do this, I just get a class, and i'm unable to see what the object value of the organization is.
tried var() and various other methods, tried .name which works for others, or .value etc.
import sys
from collections import Counter
from jira import JIRA
#Changes the default server to the below server
options = {
'server': 'myserver',
}
#Writes the above changes to the JIRA module with the username and password for authentication
jira = JIRA(options,basic_auth=(username,pw))
#Search Query, this can be very similar to the same search query you'll type within Jira
issues_in_proj = jira.search_issues('project=FUD', maxResults=1)
#All issues returned are objects, this means they contain all the fields attached to them.
#They can be accessed via a loop and via the fields varible. e.g issue.fields.summary
for issue in issues_in_proj:
print issue.fields.customfield_13000
I would like it to return the value as almost every other field does.