Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the html from a Confluence page and then update/replace only some parts of it?

Alexis Evans
Contributor
November 8, 2022

I currently have a script that grabs information from a Jira issue as it's created and then automatically creates a Confluence page populated with that information. I am using Scriptrunner for Jira with the API, and my script is a post function. Now, I need a script to run as the Jira issue is updated (or transitioned) that also updates the Confluence page accordingly. There are parts of the Confluence page that I want to keep the same, but I still want to replace the original information with any new information. I'm looking for ideas for how to do this. Can I get the html from the body of the Confluence page, alter it, and then replace the whole page with the new version? Can I pinpoint individual string segments within the existing page and just replace those? Any ideas welcome!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events