Cannot get fields.attachment from issue search #1073
Unanswered
alfredopalhares
asked this question in
Q&A
Replies: 2 comments 1 reply
-
In this case where 'attachment' is not preset, can specify what fields to get when using the issues_with_att = jira.search_issues(
jql_str = 'PROJECT={proj} and attachments is not EMPTY'.format(proj = project_key),
fields=["attachment"]
)
print(issues_with_att)
for att in issues_with_att:
print(att.key)
print(att.fields.attachment) |
Beta Was this translation helpful? Give feedback.
1 reply
-
I encountered the same issue and there is a solution:
So you have to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Before raising any bug be sure that you used the latest release and that it still reproduces with the latest master. No other version is supported.
Describe the bug
I isse has no attachment Id filed, even tough on the web interface I can see them,
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to iterate thourgh the fileds.
Stack Trace
Version Information
Type of Jira instance:
Python Interpreter: 3.9.5
jira-python: 3.0.1 and master
OS: Arch Linux
Other Dependencies:
Additional context
I can see and download all the attachements thorugh the web interface, same credentials.
Beta Was this translation helpful? Give feedback.
All reactions