Can't set value for Environment field in Jira using Jira REST Java Client
I don't see any method issueBuilder
for setting a value for the "Environment" field in "creating a problem". The environment field is not hidden. I see this on the Create Problem screen.
+3
Osm dev
source
to share
2 answers
The environment field is available when created using the REST API in the "fields" group: JIRA 6.4.12 REST API documentation
So the array "fields" looks like this: PHP:
"fields" => array(
"project" => array("key" => 'WHATEVER'),
"summary" => $summary,
"description" => $description,
"environment" => $environment,
"issuetype" => array("id" => $issueType)
)
Make sure the environment field is part of the default screen for this project. If not, the problem will not be created.
0
Webomatik
source
to share
The builder does not have a dedicated method for the environment field, but you can use the setFieldValue, fe method: builder.setFieldValue("environment", "Some value")
0
Antony Kovlyashenko
source
to share