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

This widget could not be displayed.

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
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

47 views 0 1
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