ask on stackoverflow someone will make the script for youI don't know enough. I don't understand API documentation, so I can never figure out what I'm trying to do.
ask on stackoverflow someone will make the script for youI don't know enough. I don't understand API documentation, so I can never figure out what I'm trying to do.
I tried that already. No one responded after 3 days and I just deleted my thread.ask on stackoverflow someone will make the script for you
repost one of the indians on there will fix it for youI tried that already. No one responded after 3 days and I just deleted my thread.
We ain't cheapMaybe a coli breh should help you
from jira import JIRA
import requests
user = "jirauser"
apikey = "apikeyhere"
server = "https://insertnamehere.atlassian.net"
options = {
"server": server
}
jira = JIRA(options, basic_auth=(user,apikey))
size = 100
count = 0
while True:
start= count * size
project = "FINANCE"
issues = jira.search_issues("project= " + project, start,size)
if len(issues) == 0:
break
count += 1
try:
for issue in issues:
print("ticket-no: ", issue)
print("IssueType: ", issue.fields.issuetype.name)
print("Status: ", issue.fields.status.name)
print("Summary: ", issue.fields.summary)
except:
print("Error")
continue
jira.resources — jira-python 0.1.dev50+g7fa3a45 documentationIn Python
I'm connecting I've got 2 questions:
1. I'm connecting to the Jira API to pull ticket\issue data, how do I pull the all the comments for each issue?
2. How do I output JSON here?
I got daps, reps, and coli cash.
Where is the documentation for this API?In Python
I'm connecting I've got 2 questions:
1. I'm connecting to the Jira API to pull ticket\issue data, how do I pull the all the comments for each issue?
2. How do I output JSON here?
I got daps, reps, and coli cash.
Python Jira — jira-python 0.1.dev50+g7fa3a45 documentationWhere is the documentation for this API?
The instructions for #2 were: "Output JSON (technically you could use YAML or XML, but JSON is easiest in Python). See what happens when you serialize the issue object to JSON"jira.resources — jira-python 0.1.dev50+g7fa3a45 documentation
For 1 it looks like you can do something like
for c in issue.fields.comment:
# Do what you want with each comment
For 2 are you trying to get JSON from Jira? Or print your own JSON?
I think this is wrong, but JSON.parse(issue) might work.The instructions for #2 were: "Output JSON (technically you could use YAML or XML, but JSON is easiest in Python). See what happens when you serialize the issue object to JSON"
I think I got it. I appended everytthing in the for loop into a list and then used JSON.dumps(list). It looks the same, but I think it's technically a JSON array now.I think this is wrong, but JSON.parse(issue) might work.
Got the argsparse part done.I still can't get these comments.
I'm also trying to use argparse to allow users to change the project variable via command line.
I hate this shyt.