I am trying to copy the values from an Epic for a Cascading field to the associated stories.
If an issue is created or updated and the epic link is set to copy the field from the Epic, that has cascading values of parent/child values.
I do not get an error in the audit log but nothing is getting set.
I have tried different methods with no luck.
Note: This is on Data Center Jira software.
Hi Brian, I'm noticing that in the screenshots sent the automations are listed as "disabled", is it possible that they are not enabled and that is why there is nothing in the audit log?
If you want, let me know and if not, we see that it may be failing.
I await your response
Regards
Juan - I disabled them because they are not working and wanted to reach out to the community as to why they may not be working
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the latest update to the automation. It states in the log that it is successful, but values are not updated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brian, okay, perfect. So it is not a disabling problem. But notice that in the last screenshots sent, the issue that triggers the event is "PSPCA-9085" and in the if block it is compared to PSPCA-9085 and then in the component that also edits PSPCA-9085.
You work on the same type of incident that triggered the event, not on the linked stories.
You would be missing this last capture of the rule whose name is “Epic Test in Creation”
The "for" component to indicate that it is towards the stories and not in the epic
Please let me know if I am clear in my answer.
Greetings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Juan - Thank you. I think I tried that method as well. So I changed as you recommended, and I still get the same results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Juan - I tried a different method using a JQL if an epic link equals a specific Epic and then set the values. It ran successfully, but no values were set even though the logs state the edit was successful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian, I think I can now see where the error is. I haven't seen it before, try this:
TRIGGER: CREATE ISSUE
CONDITION: ISSUE TYPE = STORY
ACTION:
{
"update": {
"Your cascade field": [
{
"set": {
"value": "{{issue.epic.fields.Your cascade field.value}}",
"child": {
"value": "{{issue.epic.fields.Your cascade field.child.value}}"
}
}
}
]
}
}
The problem was that it called the issue trigger and must call the "epic" field in both the parent and child values: {{issue.epic.fields.Your cascade field.child.value}}
Let me know if it worked!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Juan - Well, different error
Code:
{
"update": {
"customfield_14206": [
{
"set": {
"value": "{{issue.epic.fields.customfield_14206.value}}",
"child": {
"value": "{{issue.epic.fields..customfield_14206.child.value}}"
}
}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi brian, you have an error in this line:
"value": "{{issue.epic.fields..customfield_14206.child.value}}"
You put a colon ".." when it is just one "."
Try: {{issue.epic.fields.customfield_14206.child.value}}
Thanks, let me know if worked!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian, Has it worked based on my last comment?
Let me know if it works
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Juan - That was a good catch but no, it did not work. I was hoping.
Code:
{
"update": {
"customfield_14206": [
{
"set": {
"value": "{{issue.epic.fields.customfield_14206.value}}",
"child": {
"value": "{{{{issue.epic.fields.customfield_14206.child.value}}}}"
}
}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brian you have a new error again, in this line you put : ""child": {
"value": "{{{{issue.epic.fields.customfield_14206.child.value}}}}""
You are putting "{" too much.
The correct code:
{
"update": {
"customfield_14206": [
{
"set": {
"value": "{{issue.epic.fields.customfield_14206.value}}",
"child": {
"value": "{{issue.epic.fields.customfield_14206.child.value}}"
}
}
}
]
}
}
Don't change anything, it should work fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Juan -
No, I am getting the same error stating a FAILURE using your code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.