Send post https request via scriptrunner post function

Alexander Poleshuk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 25, 2022

I want to send post https request via scriptrunner post function

I use this way to post http:

def http = new HTTPBuilder()

def result = http.get(uri:'http://external_server/Services/team/CloseFlowItem.aspx?taskid='+taskid)

When I replace http to https in URL, I get an error:


2022-04-25 08:22:21,171 ERROR [workflow.ScriptWorkflowFunction]: *************************************************************************************

2022-04-25 08:22:21,180 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: DBA-4590, actionId: 91, file: <inline script> PKIX path building failed: unable to find valid certification path to requested target

                at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(

                at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(


What do I need to make request via HTTPS ?


1 answer

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 26, 2022

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events