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 : 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

740 views 1 18
Join discussion

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