It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need to get the content of a Confluence Page and add that as JIRA comment upon ticket creation

Hi,

We have a table in a Confluence page.
Our client has the following requirement-

"When a JIRA issue is created, the table present in the confluence page should be added as a comment in the ticket."

We can use the functionality of the Script Runner plugin to add a comment when the ticket is created, but we have two challenges-

1) Getting the Content from the Confluence Page.
2) Add that content in the script in the post-function to be posted as comment when the ticket is created.
3) Keeping the format of the table in the comment. (As groovy doesn't convert the HTML format to text format.

We have been using REST API to get the content in JSON format and now are proceeding to the next steps that we have planned, however that's a complex solution,
Hence wanted to ask the question here that does anyone know a shorter solution or another way to implement that.

Please let me know if you need more information.

Thank You!

Best Regards!

 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

885 views 7 24
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you