Skip to content

Commit

Permalink
Update pythonquest.py
Browse files Browse the repository at this point in the history
Number was initially static to test, but will need a dynamic number for numberoftickets (how many times to loop through)
  • Loading branch information
katebygrace authored Aug 20, 2020
1 parent a78d769 commit f427325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pythonquest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def searchForEpicTickets(username, apitoken, ticket, fixVersion):
response = requests.request("GET", newurl, headers=headers, data = {})
response_data = response.json()
print(response_data)
for x in range(0, 2): # Need to update this for x = number of versions. whoops
numberOfTickets = len(response_data["issues"])
print("The number of tickets is " + str(numberOfTickets))
for x in range(0, numberOfTickets):
issue = response_data["issues"][x]["key"]
print("Changing fixVersion for " + issue)
url = baseURL + issue
Expand Down

0 comments on commit f427325

Please sign in to comment.