Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dojo/jira_link/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ def post(self, request):
# Get the open and close keys
msg = "Unable to find Open/Close ID's (invalid issue key specified?). They will need to be found manually"
try:
open_key = close_key = None
issue_id = jform.cleaned_data.get("issue_key")
key_url = jira_server.strip("/") + "/rest/api/latest/issue/" + issue_id + "/transitions?expand=transitions.fields"
response = jira._session.get(key_url).json()
logger.debug("Retrieved JIRA issue successfully")
open_key = close_key = None
for node in response["transitions"]:
if node["to"]["statusCategory"]["name"] == "To Do":
open_key = open_key or int(node["id"])
Expand Down