Unable to Authenticate Confluence cloud from Jira scriptRunner post function

Hi All,

I’m trying to authenticate the confluence cloud from Jira script runner post function to create a page in confluence.
Here is the script I tried, Create a Confluence Page for Each Subtask of an Issue - Adaptavist Library

Can someone help me with the authentication part?

TIA!!

Hi,

So you have two options - you can use an API token in your basic auth or alternatively, if you have ScriptRunner for Confluence Cloud installed then you don’t need to do anything, the authentication will be taken care of for you by ScriptRunner.

Also, you don’t need to use the new URL approach, you can use the provided get/put/post methods from Unirest like you have to obtain issue details.

Thanks,
Jon

1 Like