Forums

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

Den Status eines Vorgangs in einer Automation ändern

Martin Hirsch
Contributor
May 28, 2025

Wir haben eine Automation die (auf manuellen Aufruf) einen neuen Vorgang anlegt. Diesen Vorgang wollen wir automatisch in den Status 'To DO' setzen bzw. direkt in diesem Status erzeugen. Allerdings kann man das Feld in der Komponente nicht auswählen und wenn wir es über das Jason in den erweiterten Optionen probieren kommt ein Fehler, dass das Feld nicht gefunden werden kann.

Mein Ansatz war folgender:

{
"fields": {
"status": "TO DO"
}
}

 

Wo liegt da das Problem? Jemand eine Idee?

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 28, 2025

Hi @Martin Hirsch 

For a question like this, context is important for the community to help.  Please post the following:

  • what version of Jira are you using: Cloud, Server, or Data Center
  • for Cloud, what type of project is this: company-managed, team-managed, JPD, etc.
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case

Until we see those...

 

The REST API and Jira UX do support creating a work item in a specific initial status.  However automation rules do not appear to support that (in their use of the REST API endpoint).  The workaround is to create the work item and then branch to it for the transition.  Another option is calling the endpoint directly with the Send Web Request action.

Seeing the specifics of your rule will help identify which is a better approach.

 

Kind regards,
Bill

0 votes
Alexander Hohmann
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 28, 2025

Idealerweise sollte im Workflow einfach "To Do" der erste Schritt gleich nach "Create" sein. Dann sind alle neuen Vorgänge automatisch in diesem Schritt "To Do".

Martin Hirsch
Contributor
May 28, 2025

Das verstehe ich nicht. Ich kann den Status ja nicht per Automation setzen. Manueller Eingriff ist hier keine Option. Wo soll ich das denn tun?

Alexander Hohmann
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2025

Auch eine Automation kann den Status ändern, auch wenn der Workflow selbst nicht geändert werden darf.


1. Aktion "Vorgang erstellen" in die Automatisierungsregel einfügen.
2. Eine Branch "für alle erstellten Vorgänge" anfügen - sie wird nur für den soeben angelegten Vorgang gelten.
3. In der Branch "Vorgang bearbeiten" wählen, darin das Feld Status wählen und den gewünschten Wert zuweisen.


Achtung: Der Übergang muss im Workflow existieren, also ein definierte "Übergang" sein. Wenn "To Do" nicht der erste, sondern z.B. der dritte Status im Workflow ist, dann muss man durch entsprechend viele Aktionen den Vorgang durch die verschiedenen Status "schieben" bis er im Wunschstatus angekommen ist. Es sei denn, dass es vom Beginn eines Workflows einen direkten Übergang nach "To Do" gibt oder wenn alle Status so definiert sind, dass sie von allen anderen Status direkt erreicht werden können.


Das alles setzt natürlich eine relativ neue Version von Jira voraus. Altversionen sind da vielleicht eingeschränkt.


Ebenfalls wichtig: Das Projekt muss die Rolle "atlassian-addons-project-access" integrieren und dieser Rolle Vorgangsbearbeitungsberechtigungen zuweisen. Sonst kann die Automatik keine Vorgänge ändern weil ihr das Zugriffsrecht fehlt.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events