Dear Jira community,
I'm working on Playbooks and automation stuffs and I'm struggling to automatically link a confluence page to a Jira ticket.
I tried to send a web request with API token which is not working at this time. The token is never trigged.
Any idea on how to do it ?
Thank you for helping,
Pierre-Olivier
Hi @Pierre-Olivier Hebert _QPS_
What error did you get from the web request? Did you try with Basic authentication and include the correct Authorization header?
(e.g. Basic <base64ncodedstring(email:token)> --> Base64.encode(email:token)
Dear @Tuncay Senturk _Snapbytes_ ,
Thank you for answering and helping me.
At this time, I don't know if I have errors or not and don't where to look. I may set it up wrong.
Here is what I tried:
Hope it is clear,
Thank for your help.
Pierre-Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the details — that helps a lot!
The Authorization header must be in Basic Auth format, not just the raw API token.
That means:
Combine your email and API token with a colon, like: your-email@example.com:your-token
Base64 encode that string.
Add it to the header like this:
Key: Authorization
Value: Basic <base64-encoded-string>
You can generate it easily using https://www.base64encode.org.
You don’t need to “set” the triggerIssue.id. It’s a built-in smart value that refers to the issue that triggered the rule. That part should work as-is IMO.
I see another possible mistake in your rule.
In your current setup, you’re including {{https://DocumentationURL}}
inside the smart value, which isn’t valid.
Instead, hardcode the Confluence page URL (or make it a variable), like this:
or if you have the page URL as a custom field in Jira:
...&pageUrl={{issue.customfield_12345}}
To check for errors: Open the automation rule, go to Rule Detail. After triggering the rule, check the log for request/response details.
I hope I was clear!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Tuncay Senturk _Snapbytes_
I finally succeed to do it thanks to your help. It works like a charm ! :)
Pierre-Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.