Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Jamie Edmondson
Contributor
July 9, 2024

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

2 answers

1 accepted

2 votes
Answer accepted
David Nickell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 9, 2024

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

Jamie Edmondson
Contributor
July 26, 2024

@David Nickell 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.

Iain Davis September 26, 2024 edited

@Jamie Edmondson 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?

0 votes
Iain Davis October 6, 2024

I've got this working now with OAuth. Let me know if you need a hand.

Robin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2025

I'm still struggling to get the POST request working (for creating a ticket). It's giving me the XSRF token issue. ChatGPT itself tells me it cannot edit the headers. How did you end up solving this?

Iain Davis March 8, 2025

It's been a while since I was actively working on GPT Actions. I'm quite sure I eventually got this working with OAuth, but I don't remember the specific steps I took.

I think part of it might have been getting the right URL to my Jira Cloud instance?

Sorry, I don't think I'm much help, but I _can_ share my Action with you, because I've stashed it on GitHub:

https://github.com/IainDavis/Nova/blob/main/actions/jira_atlassian.net.yml

If you'd like to set up a Zoom call or something, maybe seeing what you're up against will jog my memory.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events