Page History
Section | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Features used to implement the example
Example: Assign issue based on the value of a Cascading Select custom field
We have bought Jira Workflow Toolbox and I am trying to develop a ticketing system which will assign a ticket based on the results of the cascading select that user will choose. Which post function can I use from your plugin?
- We use post-function Copy parsed text to a field to copy into auxiliary virtual field "Ephemeral string 1" the value of one of the two levels of the cascading select field (let's call them Level 0 and Level 1).
- We use post-function Set a field as a function of other fields to copy into virtual field "Assignee" the name or a user or the name of a project role, depending on the value of virtual field "Ephemeral string 1". If you are going to use project roles to assign the issue, you should have previously configured the default user for those project roles in your projects.
Let's suppose we have a custom field of type cascading select called "Country". In Level 0 we select a continent, and in Level 1 we select a country in previously selected continent. Options available in custom field "Country":
We use post-function Copy parsed text to a field to copy Level 0 of field "Country" into auxiliary virtual field "Ephemeral string 1":
Note the notation used to reference level 0 of field Country:
- %{10900.0}. In case you want to reference level 1 you should use %{10900.1}.
- 10900 is the ID of custom field "Country" in our example
We use post-function Set a field as a function of other fields to set the value of virtual field "Assignee" with the name of certain users of Jira, depending on the value of virtual field "Ephemeral string 1":
Once configured, the transition looks like this:
Other examples of that functions
Set a field as a function of other fields
Incoming Links | ||||
---|---|---|---|---|
| ||||
Incoming Links | ||||
---|---|---|---|---|
| ||||
Related Usage Examples
Content by Label | ||||
---|---|---|---|---|
|