...
Method's name | User right | Description |
---|---|---|
getcompanybyname | CRM Main Menu | Return company by name or ID |
getcontactbyname | CRM Main Menu | Return contact by name or ID |
getcompanies | CRM Main Menu | Return all companies |
getcontacts | CRM Main Menu | Return all contacts |
sync | CRM Main Menu | Start synchronization of JIRA users |
setcrmproperties | CRM Main Menu | Set custom field type "Crm Property" in issue |
addcompany | Add companies | Add company |
setcontact | Add contacts | Set company for contacts |
adddictionaryvalue | Add the values to dictionaries | Add new value to a custom dictionary |
removedictionaryvalue | Remove the values from dictionaries | Remove value from a custom dictionary |
searchentities | Search CRM objects by parameters | Search CRM objects by parameters |
editcontact | Edit contacts | Edit contactAbility to pass value parameters to the api methods by field codes or by field names |
editcompany | Edit companies | Edit companyAbility to pass value parameters to the api methods by field codes or by field names |
Calls examples
Start synchronization:
http:
//YOURDOMAIN/plugins/servlet/crm/api?apiKey=${apiKey}&userName=${userName}&command=sync
...
${apiKey} - API Key (password) in the Administration/Plugins/CRM/Access
${userName} - JIRA user's login
Edit company:
https://YOURDOMAIN/plugins/servlet/crm/api?command=editcompany&apiKey=123&userName=${userName}&companyId=${companyId}&view-clients-clients_field_d1facd51-01e0-4a68-a4f3-4aa3641a590e=Development,Training&clients-clients_field_d1facd51-01e0-4a68-a4f3-4aa3641a590e=Development,Training
http:
//YOURDOMAIN
/plugins/servlet/crm/api?command=editcompany&apiKey=123&userName=${userName}&companyId=${companyId}&clients-clients_field_d8927b73-09ba-4094-b281-af6738e4432d=testest