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 |
|
|
| ||||||||||