Forums

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

Automation avec des champs personnalisés

Claire Buffet July 10, 2024

Bonjour, 

j'ai créé une règle d'automation dans jira ; Cette règle contien un champ personnalisé "valeur métier" 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 ? 

1 answer

0 votes
Trudy Claspill
Community Champion
July 10, 2024

Bonjour @Claire Buffet ,

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?

Claire Buffet July 11, 2024

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

 

Trudy Claspill
Community Champion
July 11, 2024

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?

Claire Buffet July 15, 2024

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


Thank you 

Trudy Claspill
Community Champion
July 15, 2024

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

 

 

Claire Buffet March 6, 2025

Hi Trudy, sorry I've never seen your answer :/ 

So Epic and Enabler are at the same level 

I have to try your solution Rule 1 then 

Thank you ! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events