I am trying to update a field of an issue using JIRA API and PHP.
<?php
set_time_limit(0);
session_start();
$soapClient = new SoapClient("http://jira.example.com/jira/rpc/soap/jirasoapservice-v2?wsdl");
$token = $soapClient->login('userId', 'passwd') or die('Username/Password is not correct!');
$data = array('fields'=>array('id'=>'customfield_11662','values'=>array('SDLCT-3')));
$soapClient->updateIssue($token,'SDLCT-3', $data)SDLCT-32 is an CLOSED issue whose customfield_11662 field is not being updated by the script.
But the script works fine for All the open, inprogress, reopened issues.
Error
Fatal error: Uncaught SoapFault exception:
[soapenv:Server.userException]
com.atlassian.jira.rpc.exception.RemoteValidationException: Fields not
valid for issue:
Errors: {}
Error Messages: [You do not have permission to edit issues in this
project.] in
C:\xampp\htdocs\JIRA-Requeste-Migration\updateJiraOldKeyToNewIssue.php:9
Stack trace:
#0
C:\xampp\htdocs\JIRA-Requeste-Migration\updateJiraOldKeyToNewIssue.php(9):
SoapClient->__call('updateIssue', Array)
#1
C:\xampp\htdocs\JIRA-Requeste-Migration\updateJiraOldKeyToNewIssue.php(9):
SoapClient->updateIssue('9a07eb02153408a...', 'SDLCT-3', Array)
#2 {main}
thrown in C:\xampp\htdocs\JIRA-Requeste-Migration\updateJiraOldKeyToNewIssue.php on line 9
So can any one suggest me how to solve this error and update the field for closed issues?
Thanks in advance...