I am facing an issue with one of the custom fields within Jira. I am reading the response from the Jira and storing them into a new variable as follows:
While parsing the customfield_10092 and customfield_10049 (description & release note resp.) am getting a dictionary as a response in python and when directly hitting the api from postman.
Also attaching the actual value for both the fields from Jira UI
Since the value type is paragraph each new line in the paragraph is a separate list.
Looking for a workaround to read the entire value as a whole.
"row['fields']['customfield_10049']['content'][0]['content'][0]['text']" ----> this only extracts the first paragraph of each issue.
Hi, @Josu Jacob
What a weird field... Haven't seen such bug. It's plugin custom field?
As for workaround - it will be weird too. Use concatenation in python. Concatenate dictionary values, and you will receive string, that you need. But you'll have to replace "hardbreak" in values with "\r\n"
Here you can see examples of concatenation:
https://www.geeksforgeeks.org/python-concatenate-dictionary-string-values/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.