I am having trouble adding a component to a label type in Jira.
<span>import</span> browser_cookie3
<span>import</span> requests
<span>import</span> json
cj = browser_cookie3.load()
url = <span>""</span>
text = {<span>'fields'</span>: {<span>'customfield_xxxx'</span>:[<span>'test'</span>]}}
r = requests.put(url, json=text, cookies=cj)
print(r.status_code)With the above code, I can update the label list. However, I need to achieve the following - The label contains[ ABC, 123 ] and I want to add component [ZXC] to the existing list. My goal is to have[ABC, 123, ZXC] but with the above shown code it updates to - [ZXC]
I did find that in editmeta there is "add" function for the customfield, however, I was unable to make it work.
Thank you in advance!