forked from SimranAnand1/LLMtutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.py
More file actions
25 lines (20 loc) · 724 Bytes
/
Copy pathsample.py
File metadata and controls
25 lines (20 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import requests
import json
import io
url="https://totaltechnology.atlassian.net/rest/api/3/search"
headers={
"Accept": "application/json",
"Content-Type": "application/json"
}
query = {
'jql': 'project = TTS'
}
response=requests.get(url,headers=headers,params=query,auth=("ronidas071@gmail.com","wg5OpdxcSbGvlykzUhm5C939"))
data=response.json()
issues=data["issues"]
for issue in issues:
issue_key=issue["key"]
url1="https://totaltechnology.atlassian.net/rest/api/3/issue/"+issue_key
response=requests.get(url1,headers=headers,auth=("ronidas071@gmail.com","wg5OpdxcSbGvlykzUhm5C939"))
data=response.json()
print(f'issue id is {issue_key} and status is {data["fields"]["status"]["name"]}')