Forums

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

Create a confluence page with a Scriptrunner postfunction

Bastian Stehmann
Community Champion
July 27, 2021

Hi,

 

We are currently moving from server to cloud and we would like to create Confluence pages from the Jira workflow using Jira Scriptrunner.

I already found this example from Adaptavist, but that is working only if also Scriptrunner for Confluence is installed. https://docs.adaptavist.com/sr4jc/latest/features/script-console/script-examples (at the bottom of the page).

There is mentioned, that I'll need to authenticate to do this if Scriptrunner for Confluence is not installed.

I have two questions now:

  • How is this authentication done? I couldn't find an example in the Scriptrunner Documentation
  • Is it still possible to create the page as the user that triggers the transition or do I have to use one user, that will be always the author?

Thanks

3 answers

1 accepted

0 votes
Answer accepted
Kishan Sharma
Community Champion
July 27, 2021

This thread might be of some help to you!

Bastian Stehmann
Community Champion
July 27, 2021

Hi Kishan,

 

thanks a lot, I'll have a look at this.

Bastian Stehmann
Community Champion
July 28, 2021

Thanks a lot again, I got it running by adding an explicit authorization as my user.

Like Kishan Sharma likes this
Kishan Sharma
Community Champion
July 28, 2021

Glad it worked for you :)

0 votes
Armand Luziau_Elements_
Atlassian Partner
August 16, 2021

Hi,
I'm with Elements, and we just released a new app Elements Publish to Confluence that might meet your needs, and it doesn't require scripting. The app allows you to create a Confluence pages from Jira workflow.

2021-08-12 14_14_02-Start creating Confluence pages from Jira - Elements Apps.png

Check out this article that explains how to create Confluence pages linked to Jira issues with the app.

You might want to have a look at Elements Publish to Confluence as an easier to set-up and maintain alternative.

Let me know if you have any questions!
Armand :)

Bastian Stehmann
Community Champion
August 17, 2021

@Armand Luziau_Elements_ , thanks a lot, this looks like a solution, I'll have a closer look at this.

Like # people like this
0 votes
Nic Brough -Adaptavist-
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.
July 27, 2021

If you have SR Cloud on both sides (Confluence and Jira), then https://library.adaptavist.com/entity/create-a-confluence-page-for-each-subtask-of-an-issue might be of some use...

Bastian Stehmann
Community Champion
July 27, 2021

Hi Nic,

 

thanks a lot.

Sadly, we do not have Scriptrunner for Confluence, but if it will make things a lot  easier, maybe I can convince them to get this also.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events