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

issue_field_value_append - TypeError - concate list to string #1477

Open
Cybernetic-Ransomware opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@Cybernetic-Ransomware
Copy link

When creating a new value, line 1359 attempts to concatenate a string value with a list containing one new proposed value:
new_value = current_value + [value]

This results in the following error:
TypeError: can only concatenate str (not "list") to str

When I only replace the custom field value, the user's permissions to view and edit the issue are sufficient. However, after addressing the error above, when I attempt to append a new line to the custom field, I must use two methods: Jira.issue_field_value and Jira.update_issue_field. Surprisingly, using the first method (a read-only operation) requires administrator permissions.

Is there a guide or best practice to limit the elevated privileges required for a user to call these two methods? It seems inconsistent that a read-only method demands administrator permissions.

Source file:
https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/jira.py#L1359

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

1 participant