When somebody creates a blog post in one of our Confluence pages, we want to e-mail the content to a distribution list. I have successfully created an event listener using ScriptRunner to call a mail-dispatch API and send the raw page content, which renders all right as HTML in an e-mail client. However, any macros in the content are in raw wiki code form and are not rendered. How can I use the Confluence Java API to render the page content to (X)HTML and send that to my e-mail service?
I am well versed with the Jira Java API and ScriptRunner but am newer to the Confluence API, but I have noticed much overlap.
Hi,
You can try something like this:
import static com.atlassian.jira.issue.IssueFieldConstants.COMPONENTS
def components = getFieldById(COMPONENTS)
I think I've found the answer myself:
def ComponentsField = getFieldById("components")
ComponentsField.setRequired(false); ComponentsField.setHidden(true); ComponentsField.setFormValue(null);
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.