I am currently using scriptunner to create a page in confluence during a WF post function and its works. But i am stuck with:
1) the ancestor of the page is dynamic and changes based on the Fix version. how do i get the page id of a confluence page using the title?
2) the page layout need to based on a blueprint template. So,
the current working code is based on : https://scriptrunner.adaptavist.com/latest/jira/interacting-with-confluence-from-jira.html
I can answer your first question.
If you know the space which the page is in, you can use:
import com.atlassian.confluence.pages.PageManager
import com.atlassian.sal.api.component.ComponentLocator
def pageManager = ComponentLocator.getComponent(PageManager)
def page = pageManager.getPage(SPACE_KEY, PAGE_TITLE)
getting an error the script console
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.