Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation on field "testEnvironments"

Joana Silva
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 15, 2021

Hi,

we are trying to automate the field "testEnvironments" a native field presented in the issuetype "Test Execution" but is not possible. In the "Additional fields" we're trying the following JSON:

{
"fields": {
"testEnvironments": [{
"add": "Patch"}]
}
}

Anyone have an idea to resolve this problem?

Thank you!

1 answer

0 votes
Velizar Borisov
Community Champion
February 17, 2021

Hi Joana!

I would recommend you to either use the customfield id  (e.g. "customfield_19132") instead of "testEnvirontments" or to use the update function when using JSON:


"update": {
"Text field": {
"set": "a new description"
},
"labels field": [{
"add": "test-label"
}]
},

 Please have in mind. that text custom fields use "set" and for labels custom fields you will have to use "add".

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events