I am trying to create page from template using powershell in yaml pipeline.
This is my code:
Yeah @Grzegorz Ostrowski
I'm afraid this is not yet supported for Cloud
Here's the reference for the feature request
https://jira.atlassian.com/browse/CONFCLOUD-11393
Let me know if you have any queries
Thanks,
Pramodh
Thanks for reply.
So it is not possible to get project template using powershell?
I dont wont to create page from template in one API method. I want only to get project template using API method GET /wiki/rest/api/template/{contentTemplateId}
I am able to get full json template using SopaUI or postman, why powershell returns me nearly empty json with 200 response. I use powershell in jira and confluence API to add Attachments and Pages with success, but why I cant get template through API?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this API
GET /wiki/rest/api/template/blueprint
With the above API you should be able to get all the templates
GET /wiki/rest/api/template/{contentTemplateId} - this one is for templates which you have built.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry for your trouble.
It was my simple mistake with powershell object.
But thanks for your reply
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Grzegorz Ostrowski What was the mistake you made? Can you clarify?
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.