When I create a 2 dimensional gadget, choosing cascading filed as Y axis,
I am seeing the results with respect to cascading values.
For Example:
field name = Application
Application = Jira - Bugfix, Access, Change, Automation.
Datadog - Config, Access, Integration
Chart is displaying each child value separately like:
App Name count Percentage
Jira- Bugfix - 12 - 20%
Jira - Access - 15 - 25%
DD - Access - 10 - 17%
But my requirement is to see the chart as
AppName count percentage
Jira 27 45%
DD 10 17%
Tried following the below for copying the parent value,
Created a new text field called App and created rule as explained in the below link.
Its actually working fine. But later realized, there is a limitation "Text field" can't be used for 2D gardgets, as it won't show the text fields in axis dropdown selection
For that reason tried the same automation rule for a list field, but this is not working as expected., list is not showing the actual parent value of my cascading field. Instead its displaying 'None' on the Issue View screen.
I know there is a ticket with Jira Team to make text fields visible on charts. Also I am looking for this behavior with in the Jira directly not using any 3rd party apps.
Kindly throw some light, if anyone has experienced this already.
Thanks,
Kalyani.
Hi @Rompicherla Kalyani - Regarding your JSON:
{
"update": {
"Apps": [
{
"set": {
"value": "{{issue.fields.SelectApplication.value}}"
}
}
]
}
}
Can you confirm that what I've bolded are the actual custom field names? For example, if there's a space in the field name, you need to have that space in the smart value as well.
Also, please confirm your end goal. Am I correct that you're trying to copy a cascade select parent value to a Select List (Single Choice)? If so, you should not need to use JSON for this. You should be able to select your target field from and then use this:
{{issue.fields.YOURCUSTOMFIELD.value}}
Excellent!!
This worked perfectly fine.
A quick query, how can I get this work, in case of old tickets.
I wanted to update this "App" select list field for all the tickets raised from start of this year.
Basically "App" is a new field I have created now, to copy the parent value of Select Application cascading field.
Thank you very much @Mark Segall
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how can I get this work, in case of old tickets.
I would copy the rule and on the copy, change the trigger to Scheduled. Use JQL like this:
CUSTOMFIELD IS EMPTY
This will allow it to run multiple times and continuously pick up the issues that haven't been processed yet.
Ignore the below if you're working with less than 1k issues
NOTE - If you're dealing with a large number of issues, the rule will need to execute multiple times. If you're dealing with 3,000+ issues, the rule may even throttle how many times it can run in one day. You have a couple options:
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.
@Mark Segall Is there a way to turn off the Issue notifications for this "App" field?
To avoid unnecessary emails for the users.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your Edit Issue action on the automation rule, expand More Options and you'll see an option to not send an email for the update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mark Segall
Hope you're doing well.
Can I ask you, is there a way to achieve this copying of parent value to other field basically the same requirement, can we achieve via workflow postfunctions on JIra cloud?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rompicherla Kalyani - I'm not aware of a way to do this via post function natively. You may be able to accomplish it with an add-on like scriptrunner. Natively, you could do this with an automation rule using the Issue Transitioned trigger which will give the same result as a post function.
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 response @Mark Segall
Its working perfectly fine with automation, but due to the usage limit issue.
Looking for an alternative for this.
Finally found a way to achieve this using post functions.
Its working as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would love it if you could share your post function solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check these posts how to fill a cascading field with automation
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.
Welcome to the community. I am not sure I understand your ask, so are you stating that the automation rule did got fire, but it failed to copied the parent value of your cascade field into the new custom field (select list dropdown data type)?
If the above is correct, then do you have "Jira" defined as an valid option of the new custom field? Secondly, the automation rule will only be triggered when the cascade field is changed. So if the field is populated at the same time the issue is created, then the rule will not fired because the population of the field doesn't consider as a field value changed event. Therefore, the new custom field will not be populated.
However, if the cascade field is populated after the issue was already created, then the rule should fired and populate the new custom field as long as the new custom field has the "Jira" as an valid option.
You should look at the Audit log of the automation rule to determine if the rule was triggered or not to validate the event.
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried adding the option "Jira" under new list field that I created to copy the parent value of another cascading field.
Coming to Automation, cascading field parent value is copying well in case of copy to another text field, but in case of copy to another list field, how should we do that?
I choose Field value change rule, selected Cascade App as the field and on action chosen another list field as "Apps" what should I give the value for this new list field in automation rule.
Can you please let me know.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basically, my requirement is to get the 2dimesnional gadget with cascading field parent value.
Currently its showing different rows based on child value as well.
Statistics should be shown based on number of tickets raised for the whole application.
Please let me know if there is any way to achieve this on Jira cloud.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I tried Advanced automation script
{
"update": {
"Apps": [
{
"set": {
"value": "{{issue.fields.SelectApplication.value}}"
}
}
]
}
}
"Apps is a new list field to copy the parent value from cascade field"
Error I am facing:
(Specify a valid value for Apps (customfield_ID))
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.