Hi,
Am using the jira module in python to get the all project details using for one custom field, the python coding will be like below,
fieldid=cf[XXXXX]
associated_projects = []
JQL="%s is not EMPTY order by updated" % (fieldid)
issues = jira.search_issues(JQL, maxResults=1, fields="issue key")
for issue in issues:
jira_issue = jira.issue(issue.key, fields='project')
project_key = jira_issue.fields.project.key
print ("Project Key", project_key)
associated_projects.append(str(project_key))
associated_projects list have all project name details, from this above code it will take more time to fetch the all project name one by one, whether this same needs to done in one single Rest API call? to get the all project name detail for customfiled.
So that we could save the more time.