I have a few issues under a Version ID: "12345" Version Name:"ABCD". Using jira.version_count_unresolved_issues(projID) i can get number of unresolved issues. but i need the Issue Id.
My code to get all the version:
jira = JIRA(options={'server': 'address', 'verify':'/path/to/ca.crt'}, basic_auth=("usrName","password"))
jra = jira.project('NAME')
versions = jira.project_versions(jra)
print(jira.version_count_unresolved_issues(VersionID) )
After this i need the IssueID or the name of Issues under Particular Version
Try using search_issues:
query = jira.search_issues(
jql_str="project=NAME AND fixVersion=ABCD AND resolution=Unresolved"
)
for i in query:
print(i.id)
that is working perfectly fine. But, now i have another problem. for "fixversions=ABCD - /Driver". So this " - "is causing me an error. Is there any options available to include that as a string?
Or is tit possible to pass as an argument
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh i got it.. replaced / with the \\u002f and it is working. thank you for the help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fantastic. Glad you got it working!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.