Automation - create new issue from trigger and update status

philipf
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 22, 2024

In jira cloud i have

- Two ticket types (pre-approval, and expense approval)

- They are on the same workflow

- What I would like is for when a pre-approval ticket is approved, it automatically generates a reimbursement ticket. So I used a the trigger 'then create new" to create the new ticket.

 

What I would like to do is transtion the newly created ticket back to to-do, instead of in progress. 

Both tickets types skip the first step when are being originally created, but the secondary ticket created from the pre-approval would need to go back to the first stage.

When I run it, I get this error. (jira rule runner - is jira automation

I am wondering if I need to do the transition somehow first, or create it in the 'then create' trigger automation.jira 5.pngjira4.png

1 answer

0 votes
Kalyan Sattaluri
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 22, 2024

Hello @philipf 

There are couple of problems with your rule.

Your "expense approval" ticket did not get created because attachment is missing.

If you fix that and the expense ticket did get created, to transition this new issue, you need to "Branch" on the newly created issue so you can transition the expense ticket. Because right now, you are trying to transition the "pre-approval" ticket. which is not what you want from your post.

Finally, there seems to be an issue with even pre-approval getting transitioned back to "To Do".. If all share same work flow, this should have worked (even if it was not what you wanted..).. so you may need to check your workflow steps and manually check if you can move these issues from "in Progress" to "To Do"..

I know it a lot, but try to confirm one thing at a time.. Hope it helps.

Suggest an answer

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

Atlassian Community Events