This function returns the result of a given JMESPath which is applied to a JSON as a text. In case a number, a list, a JSON object or a logical value is returned by JMESPath, the returned text of the function getFromJSON() can be converted accordingly, e.g. with toStringList().
It unfolds its power when combined with the post function Execute remote action, where fields are set with the response of the executed action (or parts of it).
getFromJSON(JSONString, JMESPath) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
Customfield 10011 is a multiline text field and holds the result of a previously executed action (by Execute remote action) which created a project in a Jira instance:
This example returns:
|
|
Bash
|
In this case, a JSON is given as text - quotes have to be escaped with \ This example returns:
|
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any JSON which is converted to a text, e.g. by writing it as a parser expression or receiving it using the field code |
|
|
text |
This parameter holds the JMESPath which is applied to the |
Output
This function returns a text
(books) Use cases and examples
| Use case |
|---|
| No content found. |