I'm looking for anyone who may have had some experience connecting ChatGPT to the Jira REST API.
Asked by Jamie Edmondson:

I'm looking to clearly understand the authentication setup to the Jira REST API from ChatGPT's custom gpt feature.


Answers:
author: David Nickell
body: Yes and No ... I have used Power BI and Excel to read pull data from Jira and push to ChatGPT for purposes of getting updated stories, test cases, and release notes (as an example) based on new requirements. ChatGPT direct to Jira -- no (and maybe that isn't even possible -- you might need some scripting middle man).

I may have some wisdom to share ...

The rest APIs are well documented AND provide Postman collections. If you can figure out Postman, you've got 25% of you interface answers (I think). the documentation for Jira core is here: <https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#about> and the postman collection is at the top right of the page.

Next is the Rest API key - which is challenging in of itself but I documented the process just yesterday.

1. Go to the profile security page and select Create and Manage API Tokens. The page for creating APIs will have a URL like this (and actually may be this): <https://id.atlassian.com/manage-profile/security/api-tokens>

2. Once you generate a key, you have to encode it with your userid in the format **userid:apipkey.** It has to be just like that, no extra spaces. (I lost 20 minutes yesterday trying to debug when the issue was a space after the colon).
3. In my case my userid was my email address.
4. Then take that string to somewhere like <https://base64encode.com/>
5. Once you have the encoded version, you now can use it for an Authorization Header as "**Basic encodedKey"**) . This is how it looks in PowerBI (the encoded key is much longer)
6. <https://something.atlassian.net/rest/api/2/myself>", \[Headers=\[Authorization="Basic ZG5pY2tlbYS5jb206QVR.......DSDZKSmM0PTk4RUREODND"\]\]))

The ChatGPT side isn't something I've played with in a few months so I will leave it alone.

Hope this helps

comments: author: Jamie Edmondson
body: [@David Nickell](/t5/user/viewprofilepage/user-id/5539011) thanks for your response! I'm sorry for the slow reply. Your reply is great because it is right up my alley. Like - uncanny. I have been using PowerBI with Jira and have been using that to help give me insight into learning how to use the Jira REST API better - more specifically, how Jira tables and fields are laid out. I've started working on my own GPT for Jira and its going ok but nothing to write home about yet. :)

We also recently started working on an integration with Smartsheet that has been - a learning experience.

Anyway - thank you for your response. It is much appreciated.


author: Iain Davis
body: [@Jamie Edmondson](/t5/user/viewprofilepage/user-id/5288814) I'm working on something similar. Would love to discuss any progress you've made. I've been stuck on getting my GPT to POST to Jira with either Basic Auth or OAuth. GET requests work just fine. But for POST requests, Basic Auth is getting hung up on an XSRF token, and whatever internal client my GPT has doesn't seem to allow you to supply Jira's purpose-made header for skipping XSRF. Identical requests work just fine when run from a text-based REST client in my IDE.  

Have you run into any of this yet?


Tags: addon-issue-description-summary

atlassian-marketplace

cloud

jira-cloud