Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to update Radio Button in Epic based on change to (parent) capability

Scott Campbell May 31, 2024

Hello all,

 

I have epics and their parent level of capabilities that both have mandatory radio buttons. I want to create an automation where when I change the capability of an epic, the epic automatically changes its mandatory radio button to match the capability. 

I have tried several options but so far have yet to get any successful results. Any assistance would be helpful. 

 

2 answers

0 votes
Scott Campbell May 31, 2024

Hello John,

When: Issue updated

If: Issue Type equals: Epic

For Parent

If: Mandatory equals: Yes

Then: Edit issue fields: Mandatory - Yes

Else

For Parent

If: Mandatory equals: No

Then: Edit issue fields: Mandatory - No

0 votes
John Funk
Community Champion
May 31, 2024

Hi Scott - Welcome to the Atlassian Community!

Can you share the rule that you have so far and where it is not working as you desire?

John Funk
Community Champion
May 31, 2024

Please reply in line here so that other readers can follow the train of the conversation. 

Can you post a screen shot of the actual rule please? That way we can see the level each item operates at. 

Scott Campbell May 31, 2024

Annotation 2024-05-31 110208.jpg

As you can see, I am trying to make my Epics match their mandatory field to the next step above them (capabilities). However, after verifying that the mandatory fields differ between the epic and capability, no action is performed. 

Annotation 2024-05-31 110255.jpg

John Funk
Community Champion
May 31, 2024

Well, what happens is that the second Condition is failing so the rule stops. So it is NOT verifying that the values are different. Can you share the details of that IF statement? 

Scott Campbell May 31, 2024

Annotation 2024-05-31 143225.jpg

John Funk
Community Champion
May 31, 2024

Maybe it doesn't like the field name Mandatory as that might be a reserved word. Try using the {{smart values}} condition along with the field ID. 

In the example below 10134 would be the id of your Mandatory custom field. 

Screenshot.png

Scott Campbell May 31, 2024

It looks like the if.matches works based on the custom field ID, however the edit function is still failing. 

Annotation 2024-05-31 151732.jpg

John Funk
Community Champion
June 1, 2024

So both Conditions are passing now - that is good. 

Can you share the details of the Edit issue for the Mandatory field? 

Scott Campbell June 3, 2024

Annotation 2024-06-03 084259.jpg

Scott Campbell June 3, 2024

Also I wanted to say thank you for bearing with me through this one John. 

Like John Funk likes this
John Funk
Community Champion
June 3, 2024

So, if it is the parent level field value that is changing, and you want to copy that down,

then you will need to add a Branch for Children between the two Conditions. And move the second Condition and subsequent field update under the branch. 

Scott Campbell June 3, 2024

I Confirmed that the value of the custom field matches in both the parent of the Epic and the Epic itself. Below is the error and the new flow: Annotation 2024-06-03 110902.jpgAnnotation 2024-06-03 110738.jpg

John Funk
Community Champion
June 3, 2024

Try adding a Log action for the value of that field after the second condition. 

Scott Campbell June 3, 2024

Ok, the log action did recognize that it is listed in the "no" position however it still fails to execute the edit to match it to the parent above it. Is it possible that since the item child parent relationship is an Epic to Capability relationship, that the term "parent" isnt functioning the way I want it to? 

 

Annotation 2024-06-03 171345.jpgAnnotation 2024-06-03 171321.jpg

John Funk
Community Champion
June 4, 2024

So, what are the values in the two fields? And which field did you do the log action on? Parent or the Epic?

Scott Campbell June 4, 2024

The values of each field are a radio button selecting either Yes or No. The custom field number for both fields is the same, 32090. The log action done was on the Epic. 

John Funk
Community Champion
June 5, 2024

But in your example - what are the current values of each field? 

Scott Campbell June 5, 2024

The current value for the Epic is No. The current value for the Capability is Yes. 

Scott Campbell June 6, 2024

As an update. I have found that jira is unable to execute a log action against {{issue.parent.customfield_xxxxx}}. My guess is that "parent" is not accepted for items above Epics. I have attempted to use capability and feature, both of which did not work sadly. I would also assume that means that the advanced compare is not executing properly if the system cannot log the position as previously mentioned. 

John Funk
Community Champion
June 6, 2024

Okay, that's good to know. Let's try this - simply take out the Compare condition and see what happens. 

Scott Campbell June 6, 2024

Still the same issue, as I think it is something to do with the "Parent" and what that phrase identifies. 

 

Annotation 2024-06-06 112742.jpgAnnotation 2024-06-06 112716.jpg

John Funk
Community Champion
June 6, 2024

I am wondering if it is the type of field. See if you can add a different type of field and do the same thing with copy from Parent issue and see what happens. Maybe Due Date or something like that. Just make sure there is a value in the Parent issue for that field. 

Scott Campbell June 6, 2024

Sadly does not work, which reinforces the perspective I have regarding "parent" not applying to items above Epics: 

Annotation 2024-06-06 121005.jpgAnnotation 2024-06-06 120944.jpgAnnotation 2024-06-06 120929.jpgAnnotation 2024-06-06 121142.jpg

John Funk
Community Champion
June 6, 2024

So the Epic has a value in the Parent field. Is the Parent in the same project? Or a different project? If different, are you sure you have full permissions to that project? Is the rule a single project rule? Or have you included both projects in a multi-project rule? 

Scott Campbell June 6, 2024

Same project, only a single project. I have admin access. Both the Epic and Capability have the same fields (now tested Mandatory field and Priority field). 

John Funk
Community Champion
June 6, 2024

Last question before going to support  - Are both of those fields on the Create and Edit screens for that project? 

Scott Campbell June 6, 2024

Yes, and confirmed they are both listed on the "View issues screen" within the "field" tab for both issue types (Epic and Capability)

John Funk
Community Champion
June 6, 2024

Not the view issues screen, but the Edit screen. 

Scott Campbell June 6, 2024

Yes, it is there as well for both. 

John Funk
Community Champion
June 7, 2024

Sorry dude, I am all out of suggestions. You should probably open a support ticket with Atlassian to see if they can help. Please post back here with the solution for future readers. 

https://support.atlassian.com/contact/#/

Good Luck!

Suggest an answer

Log in or Sign up to answer