We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b3c4c commit 9864582Copy full SHA for 9864582
1 file changed
dojo/jira_link/views.py
@@ -345,11 +345,11 @@ def post(self, request):
345
# Get the open and close keys
346
msg = "Unable to find Open/Close ID's (invalid issue key specified?). They will need to be found manually"
347
try:
348
+ open_key = close_key = None
349
issue_id = jform.cleaned_data.get("issue_key")
350
key_url = jira_server.strip("/") + "/rest/api/latest/issue/" + issue_id + "/transitions?expand=transitions.fields"
351
response = jira._session.get(key_url).json()
352
logger.debug("Retrieved JIRA issue successfully")
- open_key = close_key = None
353
for node in response["transitions"]:
354
if node["to"]["statusCategory"]["name"] == "To Do":
355
open_key = open_key or int(node["id"])
0 commit comments