Skip to content

Commit

Permalink
update assign user
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebionic committed Nov 21, 2023
1 parent e495cc4 commit eef5952
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fortifyapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.1.13'
__version__ = '3.1.14'

from fortifyapi.client import *
from fortifyapi.query import Query
Expand Down
20 changes: 10 additions & 10 deletions fortifyapi/fortify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit eef5952

Please sign in to comment.