Creating a Confluence page from JIRA via Webhook - oAuth Question

We've created a webhook that creates a Confluence page when fired by a post function in JIRA.

We're trying to figure out a way to create the issue link to the page created on the issue that fired it.

We want the issue link and the confluence page to show who they were created by and we're running into problems.

Current approach:

  1. Jira issue created.
  2. Transition executed and post function fires event to trigger webhook.
  3. Confluence page created.
  4. Webhook waits 10 seconds and then asks confluence whether the page has been created.
  5. If yes, the webhook updates the jira issue with the issue link.

We have this working well, but the problem is we're using hard-coded credentials. Any recommendations on approach to accomplishing this would be greatly appreciated.

#### Update ####

This is still an issue. Curious how oAuth should be handled when posting jira detail to a webhook that creates a Confluence page as the user who triggered the webhook... the webhook then pauses, queries Confluence for the newly created page and creates a link to the Confluence page in JIRA.

1 answer

I know it's a old post, I'm not sure if you have resolved this already. If not, look here : https://jamieechlin.atlassian.net/wiki/display/GRV/Interacting+with+Confluence+from+JIRA 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

738 views 3 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you