Dear all,
I have browse documentation on how to create sample custom REST api in script runner but some point are unclear to be
I need to create a simple POST request endpoint which will simply set the status of any issue of what is pass from the body param of the request.
When the external application is calling the POST endpoint SetIssueStatus, then the body parameter should be status =""
From that body status I should be then able to set the issue status
I have no idea and could not find sample on how to do this except basic one I have check already
my starting method is as below :
setIssueStatus(
httpMethod: "POST"
) { MultivaluedMap queryParams, String body ->
===> what to add here to read the status param from received body and then update issue status ??
}
for exemple is recevied status body param = "Completed" then I should set issue status to Completed as well
Thanks for help
regards