I am using the Rest v3 API to bulk create a component that needs to exist in several (a few dozen) projects. I am trying to automate this using Python by looping over a .csv. I am getting a 400 error, but I cannot figure out how to get this to work. Any help would be greatly appreciated.
My .csv looks like this:
My Python script looks like this:
All I get back is a 400 and I have no idea what's failing, or if my script is just fundamentally broken.
I'll see if I can get that to work. Postman doesn't really handle Python though, and the Jira API doesn't really allow you to construct looping JSON requests.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how many rows in CSV?
Additionally between every API call you can consider putting a delay of ew seconds so that Jira doesn't feel your bombing it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It will be a few dozen rows in the csv, I'm alternately getting either a 400 or a 404 error depending on what I tweak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Few things to establish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. This isn't JSON, this is Python looping over a .csv
2. Not creating tickets, I'm creating a new, identical, component in about 4 dozen projects
3. Completely unrelated to screens or fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.