Availability:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Category:
The "Simple Toggle" field empowers you to craft your own toggle, whether it be for options like "True/False," "Yes/No," or "Approved/Rejected" — the choice is yours!
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Field Configuration
Info |
---|
Before starting the field configuration, please follow the instructions for creating custom fields |
Step 1: Set a name and description
Provide a good name for the new custom field. Make it descriptive, concise, and easy to understand for others who will use it. Avoid using ambiguous or overly technical terms.
Step 2: Set labels and color
You have the option to adjust the field by adding labels and colors for the two states, "Yes" and "No." Furthermore, you can personalize the toggle by selecting a background color and adjusting its size according to your preferences.
Preview
Related Use Cases
WSJF (Weighted Shortest Job First)Calendar fieldJQL expression
Jira Service Management (JSM)
Info |
---|
Before you can add a custom field for Jira Service Management (JSM) projects, you first need to setup the custom field Then follow this guide to use the field in the request form or the portal view |
JQL expression
The field is an object type with a property status
.
Code Block |
---|
${fieldName}.status = "true" | "false" |
Info |
---|
Find further information here https://support.atlassian.com/jira-software-cloud/docs/find-specific-issues/ |
Example: a search for all issues with toggle to “Yes“ it may look like this
Code Block |
---|
"Simple Toggle.status" = "true" |
Data Structure (Automation)
Info |
---|
To set the value via automation, you need the following object structure
Code Block |
---|
{ "selectionstatus": [true { "id": number, "name": string, "children": number[] } ] } |
We know that this is kind of complex (depending on the number of levels). So here’s an example of the configuration used in the screenshots above.
Code Block |
---|
{
"selection": [
{
"id": "0",
"name": "Option 1",
"children": [
"2" <-- the id of Option 1.1
]
},
{
"id": "2",
"name": "Option 1.1",
"children": [
"3" <-- the id of Option 1.1.1
]
},
{
"id": "3",
"name": "Option 1.1.1",
"children": []
}
]
} |
| false
} |