Forums

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

Automatic page creation form jira to confluence using script runner for jira cloud

Pooja
Contributor
September 7, 2018

Hi,

I have installed the script runner for jira cloud . I want to create a page automatically in confluence when the issue moves from one transition to other.

Can someone help in writing the script in script runner for jira cloud

1 answer

1 vote
Kristian Walker _Adaptavist_
Community Champion
October 10, 2018

Hi Pooja,

Thank you for your question.

I have created a sample Script Console script for ScriptRunner for Jira Cloud which when ran from the Script Console will create a new page inside of a Confluence instance.

The example script can be viewed here and you will be able to take this script and adapt it to create the Confluence page which you require from ScriptRunner for Jira Cloud. 

Please note that you will need to update the example script to specify all the parameters indicated with < > brackets to specify the parameter that is required by the script.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

Pieter Kuppens
Contributor
February 12, 2019

Few remarks:

1. Is there a way to remove the 'crednetails' (typo in your comment) from code?
Default logged in credentials should be sufficient if the user has create confluence page privilege?

2. I think questioner (and I) would also immediately link the issue and confluence page

3. What would be the proper fault handling if the page already exists?
I would assume that the confluence page was already created with this script, and the link is already present.

4. How to create from template option would also be great?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events