How to add and maintain "Create Behaviours"?
1- GUI Handling
Create Behaviours: This is an array of JSON objects, where each object represents a behavior action with four attributes.
You must verify the JSON according to JSON Schema in order to store behaviors.
2- JSON Schema
{
"$id": "http://json-schema.org/json/schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"fieldKey": {
"type": "string"
},
"display": {
"type": "boolean"
},
"automaticFillingOption": {
"enum": ["constant_string", "source_field", "target_field", "source_issue_key"]
},
"automaticFillingValue": {
"type": "string"
}
},
"required": [
"fieldKey",
"display",
"automaticFillingOption",
"automaticFillingValue"
]
}
}
Description
Properties | Type | Description |
---|---|---|
fieldKey | string (field key) | enter here the field id. It can be a system field or custom field. The custom field Id must always start with You can find the field Id by following steps in this page https://confluence.atlassian.com/jirakb/how-to-find-id-for-custom-field-s-744522503.html, i recommend |
display | boolean | If the value is false then the field will be hidden (mandatory field must be populated otherwise it will be shown). supported fields:
|
automaticFillingOption | enum ["constant_string", "source_field", "target_field", "source_issue_key"] |
Coming Soon:
|
automaticFillingValue | string (field key or value or emty) | if you choose if you choose if you choose |
3- Eligible Behaviours
3.1 From Field of Source Issue to Field in Target Issue
the target custom field must be the same custom field id as the source.
| To: | summary | description | assignee | reporter | components | fixVersions | duedate | labels | parent | priority | environment | checkboxes | multi select | user picker | paragraph | radio buttons | multi user picker | single select | number | url | text field | date time picker | date picker |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From: |
| |||||||||||||||||||||||
summary | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
| OK |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
description |
| OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
|
|
| |
issuetype | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
| OK |
|
| |
assignee | OK | OK | OK | OK |
|
|
|
|
|
| OK |
|
| OK |
|
| OK |
|
|
| OK |
|
| |
reporter | OK | OK | OK | OK |
|
|
|
|
|
| OK |
|
| OK |
|
| OK |
|
|
| OK |
|
| |
components |
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fixVersions |
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
duedate | OK | OK |
|
|
|
| OK |
|
|
| OK |
|
|
|
|
|
|
|
|
| OK | OK | OK | |
labels | OK | OK |
|
|
|
|
| OK |
|
| OK |
|
|
|
|
|
|
|
|
| OK |
|
| |
parent | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
| OK |
|
| |
priority | OK | OK |
|
|
|
|
|
|
| OK | OK |
|
|
|
|
|
|
|
|
| OK |
|
| |
environment |
| OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
|
|
| |
checkboxes |
|
|
|
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
|
| |
multi select |
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
| |
user picker | OK | OK | OK | OK |
|
|
|
|
|
| OK |
|
| OK |
|
| OK |
|
|
| OK |
|
| |
paragraph |
| OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
|
|
|
| |
radio buttons |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
| |
multi user picker |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
| |
single select |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
|
|
|
| |
number | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
| OK |
| OK |
|
| |
url | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
| OK | OK |
|
| |
text field | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
|
|
|
| OK |
|
| |
date time picker | OK | OK |
|
|
|
| OK |
|
|
| OK |
|
|
|
|
|
|
|
|
| OK | OK | OK | |
date picker | OK | OK |
|
|
|
| OK |
|
|
| OK |
|
|
|
|
|
|
|
|
| OK | OK | OK | |
source issue key | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
| OK |
|
|
|
| OK | OK |
|
| |
constant string | OK | OK |
|
|
|
|
|
|
|
| OK |
|
|
| OK |
|
|
|
| OK | OK |
|
|
3.2 From Field of Target Issue to Field in Target Issue
| To: | summary | description | assignee | reporter | components | fixVersions | duedate | labels | parent | priority | environment | checkboxes | multi select | user picker | paragraph | radio buttons | multi user picker | single select | number | url | text field | date time picker | date picker |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From: |
| |||||||||||||||||||||||
summary |
| OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
| |
description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
assignee |
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
| OK |
|
|
|
|
|
| |
reporter |
|
| OK |
|
|
|
|
|
|
|
|
|
| OK |
|
| OK |
|
|
|
|
|
| |
components |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fixVersions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
duedate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
labels | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
| |
parent | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
| |
priority | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
| |
environment |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
checkboxes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
multi select |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
user picker |
|
| OK | OK |
|
|
|
|
|
|
|
|
| OK |
|
| OK |
|
|
|
|
|
| |
paragraph | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
radio buttons |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
multi user picker |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
|
|
|
|
| |
single select |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
number | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
| OK |
|
| |
url | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK | OK |
|
| |
text field | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK |
|
| |
date time picker | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK | OK | OK | |
date picker | OK | OK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| OK | OK | OK |
4- Examples
In this example the summary field will be populate with the value of summary field of source issue:
[
{
"fieldKey": "summary",
"display": true,
"automaticFillingOption": "source_field",
"automaticFillingValue": "summary"
}
]
if we need to hide the field after populate it we need just to change the value of display to false:
[
{
"fieldKey": "summary",
"display": false,
"automaticFillingOption": "source_field",
"automaticFillingValue": "summary"
}
]
In this example, we will populate a text field (custom field) with the value of summary field of source issue:
assuming that customfield_10337
is a text field:
In this example we will populate two fields (summary and description) in the same time with the value of summary field of source issue:
In this example we will populate a text field (custom field) with the value of summary field of target issue ( when we change the value of summary the value of text field will be change in real time):
assuming that customfield_10337
is a text field:
In this example, the summary field will be populated with the key of source issue:
In this example, the summary field will be populated with fixed text (
“New Summary"
):