fix: jira importer info endpoint to get query params (#776)

This commit is contained in:
pablohashescobar 2023-04-11 18:47:18 +05:30 committed by GitHub
parent 88d2adddc7
commit ce26bed44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,10 +65,10 @@ class ServiceIssueImportSummaryEndpoint(BaseAPIView):
)
if service == "jira":
project_key = request.data.get("project_key", "")
api_token = request.data.get("api_token", "")
email = request.data.get("email", "")
cloud_hostname = request.data.get("cloud_hostname", "")
project_key = request.GET.get("project_key", "")
api_token = request.GET.get("api_token", "")
email = request.GET.get("email", "")
cloud_hostname = request.GET.get("cloud_hostname", "")
if (
not bool(project_key)
or not bool(api_token)