diff --git a/fortifyapi/__init__.py b/fortifyapi/__init__.py index b02ad47..2f2e3d9 100644 --- a/fortifyapi/__init__.py +++ b/fortifyapi/__init__.py @@ -1,4 +1,4 @@ -__version__ = '3.1.13' +__version__ = '3.1.14' from fortifyapi.client import * from fortifyapi.query import Query diff --git a/fortifyapi/fortify.py b/fortifyapi/fortify.py index 7e4daac..a3f10ab 100644 --- a/fortifyapi/fortify.py +++ b/fortifyapi/fortify.py @@ -652,17 +652,17 @@ def set_assign_user(self, version_id, issue_id, user, revision=0): :issue_id: Issue integer that identifies the issue, this is NOT the UUID or SSC Instance ID :user: Registered Fortify SSC User name """ - data = { - "issues": [ - { - "id": issue_id, - "revision": revision - } - ], - "user": user + json = { + "type":"AUDIT_ISSUE", + "values":{ + "issues":[ + {"id":issue_id,"revision":revision} + ], + "user": user + } } - url = f'/api/v1/projectVersions/{version_id}/issues/action/assignUser' - return self._request('POST', url, json=data) + url = f'/api/v1/projectVersions/{version_id}/issues/action' + return self._request('POST', url, json=json) def get_project_version_issue(self, version_id, issue_id): """