I am doing automation on Jira, now I want fetch the data from tickets, but the tickets must have the customfield_10030, otherwise the tickets should not be selected.
Below is the code, I am using, please help me out
from atlassian import Jira
jira_instance = Jira(
url = "https://xxxxxxx.atlassian.net/",
username = "[email protected]",
password = "API token",
)
data = jira_instance.jql("project = ProjectName AND status = 'Open' ORDER BY created ASC")
The above code fetches all the tickets in open status under the project. But I want to fetch all the tickets in open status and has the customfield_10030, only then it should be selected.
Please help me out in this
JQL:
customfield_10030 is not empty