Hi all,
I'm wondering if anyone out there has any advice or a solution to the following:
I want to run a report of how many "Initiatives" Teams are involved in and spot when they are overloaded in a more instantly visual way that I can see to do in Jira/ Advanced Plans.
I am trying to work out how to populate a field in a parent ticket by copying values from the children ticket.
Eg:
Parent Ticket - Field: "Teams Involved" - Value: "Team A" "Team B"
Child Ticket A- Field: "Team" - Value: "Team A"
Child Ticket B- Field: "Team" - Value: "Team B"
The automation has also got to cope with:
- Tickets from the same team being added and not trying to duplicate the current Team Value,
- Some Tickets being removed but not removing the Team from the Parent if some are still linked,
Thanks in advance!
Can I confirm the logic here...
...is this correct?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rule is below. Please see the notes for some additional information.
---
Prerequisites:
---
---
Notes:
---
Give this a go, and let us know if it works for you :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ste Wright ,
Thanks for the suggestion above!
I've put it in place and the audit log is saying that I have success.... BUT I don't see any of the Team Names appearing as selected. Any ideas?
I've checked that the list matches the names of the teams...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Audit Log will display as successful because the variable(s) are created, even if the wider rule doesn't work.
I usually use "Log Action" actions to check each variable is working as expected.
I'd suggest...
This will let you review if these are working as expected in the audit log. You can also provide a screenshot of the results here and we can take a look if useful :)
Ste
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.
Here is the audit log... and the field inside the ticket....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The second Log Action looks incorrect, {{TeamList.split("; ").distinct.join(",")}} should change the list...
Can you send a screenshot of the two Variable creation actions?
Ste
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.
I'm not saying it is this, but there's a space missing in the second one, with the smart value I used being {{#lookupIssues}}{{#customfield_10001}}{{name}}; {{/}}{{/}}
There's a space after the ; - but, I removed the space in my rule and the rule continued to work correctly.
---
Perhaps provide a screenshot of your whole rule, with the right-hand side visualising the "Edit Issue Fields" option in the Parent field.
A lot of checks I know, but I know this can work as I have it running on one of my instances :)
Ste
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.
In the Edit Issue action, you've used TeamsInvolved...
{{#TeamsInvolved.split(",")}}{"value":"{{.}}"}{{^last}},{{/}}{{/}}
...instead of the variable you created, so it should be...
{{#AllTeams.split(",")}}{"value":"{{.}}"}{{^last}},{{/}}{{/}}
Ste
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.
Awesome, glad it works :)
Could you accept this answer if possible? It indicates to others who find this question in future that this answer can help them too :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Christopher Atkinson
You might want to use a Labels custom field in your parent issue.
You could create a scheduled rule that gets a list of the parents that you want to update.
Then for each parent you would
- clear the custom Labels field
- walk through the child issues
- pull the Team value from each child and add it to the custom Labels field of the parent.
If the Team value is already present in the custom Labels field, it won't be added again.
Another alternative that might work would be a rule triggered by a change to the Team field of a child issue. I haven't worked out the details on that rule.
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.