Has anyone found a way to use the data that is edited in the (scaffolding) macros with a script? I want the REST Endpoint to access this data to transfer it to Jira and create Issues based on that information.
Hi Lennard,
Hope you are having a great day.
You can use the following Get endpoint to access Scaffolding values:
{CONFLUENCE-BASE-URL}/rest/scaffolding/1.0/api/form/meta/{pageid}
You can find more about the Scaffolding Rest APIs through the following link:
As for creating Jira issues, you can use the following endpoint:
POST /rest/api/2/issue
You can read more on Jira Rest APIs through the following link:
I hope it helps.
Best,
Sayed
Hi Sayed,
hope you're also having a great day.
Thank you for your fast reply. As I am not that familiar with Endpoints could you might help me a little bit more? How would that line to get the data look like, if the confluence url was "http://confluenceurl" , page id "12345" and the name of the macro "textmacro"?
Because if I type
"def request = applicationLinkRequestFactory.createRequest(POST, "/rest/api/2/project")"
it works but if I type
"def request = applicationLinkRequestFactory.createRequest(POST, "<confluenceurl>/rest/scaffolding/1.0/api/form/meta/123456")
it says "The variable "GET" is undeclared.
Best regards
Lennard
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.