Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition_Issue fail #1860

Open
2 of 4 tasks
PoivronMax opened this issue May 13, 2024 · 1 comment
Open
2 of 4 tasks

Transition_Issue fail #1860

PoivronMax opened this issue May 13, 2024 · 1 comment

Comments

@PoivronMax
Copy link

Bug summary

I now want to use the transition_issue function to change the status of JIRA, but since attachments must be added when the status changes, transition_issue cannot update attachments, so there is no way to change the JIRA status. I would like to ask how to change the jira status through transition_issue when the attachment is a required item.

Error:
response text = {"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

main

Python Interpreter version

3.8

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jira.the_function(x)
# 3.
...

Stack trace

response text = {"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}

Expected behaviour

JIRA Status Changed

Additional Context

No response

@dimitarOnGithub
Copy link

Just to confirm @PoivronMax , is your setup similar to https://community.atlassian.com/t5/Jira-questions/Attachment-requirement-validator/qaq-p/2607275?

I'm not sure the JIRA API itself actually allows uploading files during transition due to the different type of request. Perhaps a workaround would be to change the validation to check if an attachment is present for the issue and then transition, instead of requiring an attachment at the time of permission, somewhat related conversation over here - https://community.atlassian.com/t5/Jira-questions/Workflow-transition-dependent-on-attachment/qaq-p/1765403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants