Forums

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

How to do a HTTP PATCH request from within scriptrunner ?

Marc Minten (EVS)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2020

I need to to a HTTP PATCH request to another (Atlassian!) application (Jira Align).

I have an Application link I use to execute HTTP requests from Jira to that application, following the scriptrunner examples.

However, it seems the HTTP PATCH method is not implemented in the Atlassian class https://docs.atlassian.com/sal-api/3.0.0/sal-api/apidocs/com/atlassian/sal/api/net/Request.MethodType.html ???

I cannot use the HTTP PUT request, as it requires to resend the whole object each time (see https://restfulapi.net/http-methods/).

How to accomplish this ? Is there somewhere a more recent (an up to date) class for HTTP requests ?

1 answer

0 votes
Manuel
Contributor
October 25, 2021

Did you find a solution?

Marc Minten (EVS)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2021

Unfortunately... not :-(

One Atlassian group DID add the PATCH method to the class, and created a new version of that module. They considered the problem as "solved".

But the new version of the module never did get into a Jira version. That has to be done by yet-another-Atlassian-team that did not consider this as urgent/critical ... ?

So formally, for Atlassian, the issue is "solved", but for the end-user, there is no solution and no solution in sight...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.4
TAGS
AUG Leaders

Atlassian Community Events