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.PageManagerimport com.atlassian.sal.api.component.ComponentLocatordef pageManager = ComponentLocator.getComponent(PageManager)def page = pageManager.getPage(SPACE_KEY, PAGE_TITLE)
getting an error the script console
Hi @Krishnanand Nayak ,
Did you get a solution for creating a page using a Template? \
-Abrar
It looks like you're new here. Sign in or register to get started.