This commit is contained in:
Guillermo 2019-09-26 23:18:26 -03:00
parent 844de1e10f
commit 5ff7d114e5
1 changed files with 2 additions and 3 deletions

View File

@ -67,16 +67,15 @@ class Scripts
request('/user/logout')
end
def self.createTicket(title = 'Winter is coming',content = 'The north remembers')
def self.createTicket(title = 'Winter is coming',content = 'The north remembers', department = 1)
result = request('/ticket/create', {
title: title,
content: content,
departmentId: 1,
departmentId: department,
language: 'en',
csrf_userid: $csrf_userid,
csrf_token: $csrf_token
})
result['data']
end