...
To start, we need to the script that will run when called by the REST Service. This script is actually very generic, any custom field can be set using a simple script like this:
Stashincludebyfilepath |
---|
repoSlug | sil Bitbucket file macro |
---|
showLineNumbers | true |
---|
title | updateCustomField.sil |
---|
url | https://bitbucket.cprime.io/projects/CAP/repos/sil-script-library | branchId | refs/heads/master |
---|
projectKey | CAP |
---|
filepath | raw/API/updateCustomField.sil?at=refs%2Fheads%2Fmaster |
---|
showLineNumbers | true |
---|
progLang | java |
---|
applicationLink | e1651377-b920-3831-9722-2aeff6dc52cdsyntaxHighlighting | JavaScript |
---|
|
This is an example Curl script that calls the Power Scripts REST Service to run the script. Stashincludebyfilepath |
---|
repoSlug | Bitbucket file macro |
---|
showLineNumbers | true |
---|
title | updateCustomField_curl.txt |
---|
url | https://bitbucket.cprime.io/projects/CAP/repos/sil-script-library | branchId | refs/heads/master |
---|
projectKey | CAP |
---|
filepath | raw/API/updateCustomField_curl.txt?at=refs%2Fheads%2Fmaster |
---|
showLineNumbers | true |
---|
progLang | plain |
---|
applicationLink | e1651377-b920-3831-9722-2aeff6dc52cdsyntaxHighlighting | JavaScript |
---|
|
To customize this curl script you need to do the following:
...