Automation avec des champs personnalis?s
Asked by Claire Buffet:

Bonjour,

j'ai cr?? une r?gle d'automation dans jira ; Cette r?gle contien un champ personnalis? "valeur m?tier" ![automation.PNG](/t5/image/serverpage/image-id/334704iDFDCB788EC860845/image-size/large?v=v2&px=999 "automation.PNG")

lorsque je l'ex?cute, j'ai le message d'erreur suivant :

D?tails de l'action : D?clenchement manuel Claire Buffet a d?clench? la r?gle

Condition du ticket Les tickets suivants ont ?t? r?solus : APG-83

Modifier le ticket Ticket ? copier introuvable customfield_10111

Aucun champ ou de valeur de champ ? modifier pour les tickets (peut ?tre d? ? des valeurs de champ non existantes dans un projet donn?) : APG-83

J'ai v?rifi? :

- le champ est bien le m?me utilis? pour initiative et epic

- le champ est bien pr?sent dans les 2 ?crans de tickets initiatives et epics

Pourriez vous m'indiquer ce qui ne fonctionne pas svp ?


Answers:
author: Trudy Claspill
body: Bonjour [@Claire Buffet](/t5/user/viewprofilepage/user-id/5519362) ,

La condition que vous avez ajout?e apr?s le d?clencheur est de v?rifier que l'automatisation a ?t? d?clench?e pour un ticket de type Initiative.

Dans l'action Modifier le probl?me, vous essayez de copier dans le probl?me de l'initiative une valeur du probl?me parent de l'initiative, et le message de la r?gle d'automatisation indique que l'initiative n'a pas de probl?me parent.

Vous mentionnez que le champ est pr?sent dans Initiatives et dans Epics. Les Initiatives sont-elles des probl?mes parents d'Epics, ou les Epics sont-ils des probl?mes parents d'Initiatives ? Pouvez-vous nous dire quelle est la structure hi?rarchique de vos types de probl?mes ?

---

Hello,

The condition you have added after the trigger is checking that the automation was triggered for an issue of type Initiative.

In the Edit Issue action you are trying to copy into the Initiative issue a value from the Initiative's parent issue, and the automation rule message is indicating the Initiative does not have a parent issue.

You mention the field is present in Initiatives and in Epics. Are Initiatives parent issues of Epics, or are Epics parent issues of Initiatives? Can you tell us what your issue type hierarchy structure is?

> Automation with custom fields
>
> Good morning,
>
> I created an automation rule in jira; This rule contains a custom field "business value"
>
> when I run it, I get the following error message:
>
> Action details: Manual trigger Claire Buffet triggered the rule
>
> Ticket Condition The following tickets have been resolved: APG-83
>
> Edit ticket Ticket to copy not found customfield_10111
>
> No fields or field values ??to modify for tickets (may be due to non-existing field values ??in a given project): APG-83
>
> I checked :
>
> - the field is the same used for initiative and epic
>
> - the field is clearly present in the 2 initiatives and epics ticket screens
>
> Could you tell me what is not working please?

comments: author: Claire Buffet
body: Hi Trudy

Thanks for your reply.

Epic and enabler are children of initiatives, and my need is to copy business value into children's field (epic and enabler) from initiative's business value.

Claire


author: Trudy Claspill
body: Hello Claire,

When do you want to copy the value from the Initiative to the Epics and Enabler issues?

Do you want it copied when an Epic or Enabler is made a child of an Initiative?

Do you want it copied when the value is changed in an Initiative?


author: Claire Buffet
body: Hello Trudy,

My answers :

Do you want it copied when an Epic or Enabler is made a child of an Initiative? YES

Do you want it copied when the value is changed in an Initiative? YES

<br />

Thank you


author: Trudy Claspill
body: Hello Claire,

I need clarification on one more point.

Is you hierarchy like this?

```
Initiative
|-- Epic
    |-- Enabler
```

Or is it like this?

```
Initiative
|-- Epic
|-- Enabler
```

Is Enabler of child of an Epic, which is a child of an Initiative? Or are Epic and Enabler both direct children of Initiatives?

You will need at least two rules;

Rule #1: when the issue becomes a child on an Initiative

Rule #2: when the value is changed in the Initiative. If Enabler is a child of an Epic, that may require additional rules.

Rule #1:

```
TRIGGER: Field Value Change
  Field: Parent
CONDITION: Issue Fields Condition
  Field: Issue Type
  Condition: equals
  Value: Epic
CONDITION: Related Issues
  Related issues: Parent
  Condition: Exists
ACTION: Edit issue
  Field: "business value"
  Value: Copy business value from Parent
```

Rule #2

```
TRIGGER: Field Value Change
  Field: business value
CONDITION: Issue Field Value
  Field: Issue Type
  Condition: equals
  Value: Initiative
FOR EACH: Related Issues
  Related issues: Children
    ACTION: Edit issue
      Field: "business value"
      Value: Copy business value from Parent
```


Tags: cloud

jira-cloud