Can't set value for Environment field in Jira using Jira REST Java Client
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
source to share