Hi, I want to create an automation that create another issue and inherits the Goals from its parent.. My first attempts was just to copy the field Goal from the parent but that fails with "We excluded the configured field from this action as it couldn't be found:".
So I then I tried setting Additional fields as follows
{ "fields": { "Goals":"{{triggerissue.Goals}}" } }
The rule executes ok but the created issue's Goals field is not set.
Prior to creating the issue, I log {{triggerissue.Goals}} which logs as
{id=ari:cloud:townsquare:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx::goal/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} are some hex number
Hi @Rees_ Ian
There are several fields named "Goal" or "Goals" in Jira, depending upon the product and project type. What type of product and project are you using with the field: a custom field you added, a Jira Product Discovery (JPD) field, an Atlas goal, etc.? Thus, they also may have different field types.
And, because of the multiple fields with similar names, it may help to set the field using the custom field ID and JSON (paying attention to the field type for the syntax). I recommend identifying an example work item with your field, and then using the how-to article below to determine if the field is supported by automation rules and its custom field ID:
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
Thanks Bill - it is an Atlassian Home 'Goals' (was Atlas).
When I list all the fields, I see Goals mentioned twice.
Once in the names section
"customfield_14390": "Goals",
and then later
"customfield_14390": [
{
"id": "ari:cloud:townsquare:nnnnnnnx-xnnn-nnxx-xnnn-nxnxxnxnxxnn:goal/xnnnnxnn-nnnn-nxnn-nnxn-nnnnxnnnxnnnnnnn"
}
],
when nx etc is a mixture of alpha and number.
So firstly I tried just replacing Goals with "customfield_14390" and setting the value to exactly what was logged
{
"fields": {
"customfield_14390": "{id=ari:cloud:etc etc etc etc}"
}
} - the rule ran successfully but the Goals wasn't set on the created issue
I then tried the following syntax to set the custom field such as
{
"fields": {
"customfield_14390": {
"id": "ari:cloud:townsquare:nnnnnnnx-xnnn-nnxx-xnnn-nxnxxnxnxxnn:goal/xnnnnxnn-nnnn-nxnn-nnxn-nnnnxnnnxnnnnnnn"
}
}
}
but I keep getting the error "Operation value must be a string (customfield_14390)"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the additional information, and...according to these open suggestions, that field is not supported yet by automation rules:
https://jira.atlassian.com/browse/AUTO-1683
https://jira.atlassian.com/browse/JRACLOUD-93486
I suspect there is no public "write" REST API endpoint for the field yet, and so rules cannot change it. Here is the separate suggestion to create that REST API:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rees_ Ian
You are almost there. In the last screen shot you have copy from current issue, you might want to change that to trigger issue and it should fix the issue for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid not - even if you change that to triggerissue - you still get the error "We excluded the configured field from this action as it couldn't be found:"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've tried lots of different ways but just cannot seem to set the Goal on a created issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.