curl --request PATCH \
--url https://api.statisfy.com/v1/integrations/jira/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": [
"<string>"
],
"auto_include_new_fields": true,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": [
"<string>"
]
},
"project_keys": [
"<string>"
],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_key": "<string>",
"creates_task": true,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": [
"<string>"
],
"auto_include_new_fields": true,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": [
"<string>"
]
},
"id": "<string>",
"is_active": true,
"issue_type_filter": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"project_type": "software",
"support_multiple_customers": false
}
],
"site_base_url": "<string>",
"sync_issue_link": true
}
'import requests
url = "https://api.statisfy.com/v1/integrations/jira/config"
payload = {
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": ["<string>"],
"auto_include_new_fields": True,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": ["<string>"]
},
"project_keys": ["<string>"],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_key": "<string>",
"creates_task": True,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": ["<string>"],
"auto_include_new_fields": True,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": ["<string>"]
},
"id": "<string>",
"is_active": True,
"issue_type_filter": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"project_type": "software",
"support_multiple_customers": False
}
],
"site_base_url": "<string>",
"sync_issue_link": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expected_version: 1,
field_whitelist: {
account_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
account_fields: ['<string>'],
auto_include_new_fields: true,
task_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
task_fields: ['<string>']
},
project_keys: ['<string>'],
project_rules: [
{
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
project_key: '<string>',
creates_task: true,
field_whitelist: {
account_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
account_fields: ['<string>'],
auto_include_new_fields: true,
task_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
task_fields: ['<string>']
},
id: '<string>',
is_active: true,
issue_type_filter: {exclude: ['<string>'], include: ['<string>']},
project_type: 'software',
support_multiple_customers: false
}
],
site_base_url: '<string>',
sync_issue_link: true
})
};
fetch('https://api.statisfy.com/v1/integrations/jira/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/integrations/jira/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'expected_version' => 1,
'field_whitelist' => [
'account_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'account_fields' => [
'<string>'
],
'auto_include_new_fields' => true,
'task_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_fields' => [
'<string>'
]
],
'project_keys' => [
'<string>'
],
'project_rules' => [
[
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'project_key' => '<string>',
'creates_task' => true,
'field_whitelist' => [
'account_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'account_fields' => [
'<string>'
],
'auto_include_new_fields' => true,
'task_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_fields' => [
'<string>'
]
],
'id' => '<string>',
'is_active' => true,
'issue_type_filter' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'project_type' => 'software',
'support_multiple_customers' => false
]
],
'site_base_url' => '<string>',
'sync_issue_link' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/integrations/jira/config"
payload := strings.NewReader("{\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"project_keys\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_key\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true,\n \"issue_type_filter\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"project_type\": \"software\",\n \"support_multiple_customers\": false\n }\n ],\n \"site_base_url\": \"<string>\",\n \"sync_issue_link\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.statisfy.com/v1/integrations/jira/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"project_keys\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_key\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true,\n \"issue_type_filter\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"project_type\": \"software\",\n \"support_multiple_customers\": false\n }\n ],\n \"site_base_url\": \"<string>\",\n \"sync_issue_link\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/jira/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"project_keys\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_key\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true,\n \"issue_type_filter\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"project_type\": \"software\",\n \"support_multiple_customers\": false\n }\n ],\n \"site_base_url\": \"<string>\",\n \"sync_issue_link\": true\n}"
response = http.request(request)
puts response.read_body{
"field_whitelist": {},
"project_keys": [
"<string>"
],
"project_rules": [
{}
],
"site_base_url": "<string>",
"sync_issue_link": true,
"version": 123,
"sync": {
"message": "<string>",
"not_started": [
"<string>"
],
"started": [
"<string>"
]
}
}Change the Jira config
Changes the settings you send; the others stay. The save runs the app’s checks (a refusal is a 422 with their text) and locks each mapped field. A project that gets its first active rule, or a task project with no Statisfy project yet, starts a 30-day first sync: sync says which started and which did not. Turning sync_issue_link on creates the ‘JIRA Link’ task field. A 409 means the config changed since you read it (or expected_version is not the live one): read it again.
curl --request PATCH \
--url https://api.statisfy.com/v1/integrations/jira/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": [
"<string>"
],
"auto_include_new_fields": true,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": [
"<string>"
]
},
"project_keys": [
"<string>"
],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_key": "<string>",
"creates_task": true,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": [
"<string>"
],
"auto_include_new_fields": true,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": [
"<string>"
]
},
"id": "<string>",
"is_active": true,
"issue_type_filter": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"project_type": "software",
"support_multiple_customers": false
}
],
"site_base_url": "<string>",
"sync_issue_link": true
}
'import requests
url = "https://api.statisfy.com/v1/integrations/jira/config"
payload = {
"expected_version": 1,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": ["<string>"],
"auto_include_new_fields": True,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": ["<string>"]
},
"project_keys": ["<string>"],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_key": "<string>",
"creates_task": True,
"field_whitelist": {
"account_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"account_fields": ["<string>"],
"auto_include_new_fields": True,
"task_field_mappings": [
{
"jira_field": "<string>",
"target_field_key": "<string>"
}
],
"task_fields": ["<string>"]
},
"id": "<string>",
"is_active": True,
"issue_type_filter": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"project_type": "software",
"support_multiple_customers": False
}
],
"site_base_url": "<string>",
"sync_issue_link": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expected_version: 1,
field_whitelist: {
account_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
account_fields: ['<string>'],
auto_include_new_fields: true,
task_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
task_fields: ['<string>']
},
project_keys: ['<string>'],
project_rules: [
{
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
project_key: '<string>',
creates_task: true,
field_whitelist: {
account_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
account_fields: ['<string>'],
auto_include_new_fields: true,
task_field_mappings: [{jira_field: '<string>', target_field_key: '<string>'}],
task_fields: ['<string>']
},
id: '<string>',
is_active: true,
issue_type_filter: {exclude: ['<string>'], include: ['<string>']},
project_type: 'software',
support_multiple_customers: false
}
],
site_base_url: '<string>',
sync_issue_link: true
})
};
fetch('https://api.statisfy.com/v1/integrations/jira/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/integrations/jira/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'expected_version' => 1,
'field_whitelist' => [
'account_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'account_fields' => [
'<string>'
],
'auto_include_new_fields' => true,
'task_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_fields' => [
'<string>'
]
],
'project_keys' => [
'<string>'
],
'project_rules' => [
[
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'project_key' => '<string>',
'creates_task' => true,
'field_whitelist' => [
'account_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'account_fields' => [
'<string>'
],
'auto_include_new_fields' => true,
'task_field_mappings' => [
[
'jira_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_fields' => [
'<string>'
]
],
'id' => '<string>',
'is_active' => true,
'issue_type_filter' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'project_type' => 'software',
'support_multiple_customers' => false
]
],
'site_base_url' => '<string>',
'sync_issue_link' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/integrations/jira/config"
payload := strings.NewReader("{\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"project_keys\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_key\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true,\n \"issue_type_filter\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"project_type\": \"software\",\n \"support_multiple_customers\": false\n }\n ],\n \"site_base_url\": \"<string>\",\n \"sync_issue_link\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.statisfy.com/v1/integrations/jira/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"project_keys\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_key\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true,\n \"issue_type_filter\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"project_type\": \"software\",\n \"support_multiple_customers\": false\n }\n ],\n \"site_base_url\": \"<string>\",\n \"sync_issue_link\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/jira/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expected_version\": 1,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"project_keys\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_key\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"account_fields\": [\n \"<string>\"\n ],\n \"auto_include_new_fields\": true,\n \"task_field_mappings\": [\n {\n \"jira_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_fields\": [\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true,\n \"issue_type_filter\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"project_type\": \"software\",\n \"support_multiple_customers\": false\n }\n ],\n \"site_base_url\": \"<string>\",\n \"sync_issue_link\": true\n}"
response = http.request(request)
puts response.read_body{
"field_whitelist": {},
"project_keys": [
"<string>"
],
"project_rules": [
{}
],
"site_base_url": "<string>",
"sync_issue_link": true,
"version": 123,
"sync": {
"message": "<string>",
"not_started": [
"<string>"
],
"started": [
"<string>"
]
}
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Only the settings you send change; the rest stay. null puts a setting back to its default.
The config version you read. Sent: a change against a version that is no longer live is a 409 and writes nothing (0 = the config was never saved). Left out, the version this call reads is used, so a change saved between that read and this write is still a 409: read again and retry
x >= 0Response
Successful Response
Jira's settings, as saved. Each setting has the shape that PATCH /config takes.
Was this page helpful?