How do I Automate Client Field to Associate with an Epic

Priya Gohil
Contributor
March 28, 2022

I created a field called "Clients"

Screen Shot 2022-03-28 at 4.31.41 PM.png

 

and tried to associate tickets with a specific client to and epic

Screen Shot 2022-03-28 at 4.31.24 PM.png

 

that way I can filter using Epics here


Screen Shot 2022-03-28 at 5.00.59 PM.png

However, when the ticket is create with the client configured, it still does not associate to the epic, and I have to manually update the ticket with the epic link.

2 answers

2 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2022

Hello @Priya Gohil 

I see you are working with a Team Managed project.

Team Managed projects don't use the "Epic Link" field to note an issue's parent Epic. Instead they use the Parent field.

The Parent field is not one available in the Choose Field to Set drop down in Automation rules. You need to use the More Options and set it using the Additional Fields option.

Screen Shot 2022-03-28 at 5.24.07 PM.png

 

Credit to @Natasha Denny for noting this solution in this post.

1 vote
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2022

Hi @Priya Gohil 

What kind of field is Clients? And what options are set for it?

And how many combinations are there for assigning Epics based on this field?

Ste

Priya Gohil
Contributor
March 28, 2022

@Ste Wright It is a dropdown with about 24 clients and there are 6 Epics. Each client should be associated with 1 Epic.

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2022

Hi @Priya Gohil 

It looks like @Trudy Claspill has found a potential solution!

Let us know if this works - if not, I'd be happy to try and replicate this for you, to help define the rule :)

Ste

Priya Gohil
Contributor
March 29, 2022

Per @Trudy Claspill I set up the automation as follows:

Screen Shot 2022-03-29 at 9.39.40 AM.png


When I go create the ticket, I still don't see it linked


Screen Shot 2022-03-29 at 9.42.15 AM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 29, 2022

@Priya Gohil 

Can you show us the details of the Trigger?

Have you set the options in that for Change Type or For Issue Operations?

What type of field is Client?

Priya Gohil
Contributor
March 31, 2022
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

In the first screen you have the For issue operations set to Edit. That means the rule will be triggered only when an issue is being edited. It won't be triggered when an issue is being Created. You need to add the Create Issue option to that field to also trigger the rule when an issue is being created.

Priya Gohil
Contributor
March 31, 2022

@Trudy Claspill Like this? 

Screen Shot 2022-03-31 at 2.39.38 PM.png

Just tested, and still seems like it doesn't want to link to the Epic.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

No, like this.

Screen Shot 2022-03-31 at 2.42.40 PM.png

Priya Gohil
Contributor
March 31, 2022

@Trudy Claspill Oh sorry, my bad! So, I just tested that and still nothing changes. :\ 

Like Deleted user likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

Please show us again the details of your current rule.

Is there more than one "Clients" field in the pull-down list in the rule when you are selecting the field to monitor for changes?

Has a "Clients" custom field been defined by your Jira Administrators for use in Company Managed projects?

Like Deleted user likes this
Priya Gohil
Contributor
March 31, 2022

Screen Shot 2022-03-31 at 3.53.13 PM.pngScreen Shot 2022-03-31 at 3.54.19 PM.pngScreen Shot 2022-03-31 at 3.54.25 PM.pngScreen Shot 2022-03-31 at 3.54.31 PM.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

In the Automation Rule editor, when you pull down this field, do you find more than one entry named "Clients"

Screen Shot 2022-03-31 at 4.03.31 PM.png

Can you have a Jira Administrator check if a custom field named Clients has been defined at a global level? They would do that by going to the administration settings > Issues > Custom Fields.

When you execute an action to create and issue or update the Clients field in one of your issues, what shows up in the Audit Log for the rule? You can see a link to its Audit Log in the upper left area, above the display of the rule steps.

When I create a Dependent custom field in my test Team Managed project, the field is not showing up in the drop-down list in the Automation Rule. I am suspicious that while you have selected Clients for that, you are actually getting a Company Managed project custom field named Clients rather than the custom field named Clients that is in your Team Managed project.

Priya Gohil
Contributor
March 31, 2022

Oh I see you are right. When I just click the dropdown, I don't see "Clients" as an option. I don't know why would it let me select "Clients" after typing it in. I will check with the administrator. 

Under Audit log I do see a series of "CONFIG CHNGE" and then "NO ACTIONS PERFORMED"

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 31, 2022

You can click on the Show More option in the Operations column to get more details about the specific execution of the rule.

Screen Shot 2022-03-31 at 4.21.37 PM.png

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 1, 2022

Hi @Priya Gohil 

Whilst it might be possible to make this work - is a Dependent Dropdown required? This field is only required if you have cascading options - for example...

  • Client 1
    • Name 1
    • Name 2
  • Client 2
    • Name 3
    • Name 4

...if you don't need dependent options like this - could you change the field type to just be DropdownThis should resolve the Issue.

 


Then the rule will be...

  • Trigger: Field Value Changed
    • Field: Clients
    • Change Type: Set as required
    • For: Set as required
  • Condition: If/Else Block
    • Sub-Condition: Issue Fields Condition
      • Field: Clients
      • Condition: is one of
      • Value: Name 1, Name 2, Name 3
    • Sub-Action: Edit Issue
      • More Options
        • Additional Fields...
          • {"fields": {"parent": {"key":"ABC-1"}}}
            • ABC-1 is your Epic Key
  • Else If...
    • Repeat sub-options above, for each other combination of client names and Epics

 


As noted in previous comments, ideally the field Clients will have a unique name not used elsewhere on the platform.

This is due to a limitation in Automation where duplicate field names can cause Automations to fail (as it cannot be set per field ID).

 


Let us know what you think of the above!

Ste

Like Cosmin Soare likes this
dchung
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 4, 2022

@Ste Wright you're a genius, this worked!

Like Ste Wright likes this

Suggest an answer

Log in or Sign up to answer