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
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.