Forums

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

What I'm doing wrong with Automation?

Vladimir Sumilin
Contributor
February 22, 2023

Hi,

I have a problem with Jira automation, I'm trying to make automation, which will create new issues one year after, but before 2 weeks. I also add a new status for old ones.

Screenshot:

Scrennshot.PNG

 

In Audit log it showing me this: 

config.PNG

So, what I am doing wrong? Why it's not creating anything? I just tried to make some tests and nothing was created. 

 

Edited: 

I have resolved some problems and I can run the query now, but I'm getting an error. 

Screenshotts.PNG

 

 

Best regards,

Vladimir

2 answers

1 vote
Alex Koxaras _Relational_
Community Champion
February 22, 2023

Hi @Vladimir Sumilin 

I would double check the JQL on advanced issue search to verify that it yields the results that you want. From the image you provided to @Velizar Borisov it seems that your JQL yields 0 issues (not 0 errors). Thus it's not running.

Vladimir Sumilin
Contributor
February 22, 2023

Hi @Alex Koxaras _Relational_ 

I have tried with advanced issue search - if I understood it right. I will try to make it with Cron expression, was this your idea? 

Screenshot:

newQuery.PNG

1 vote
Velizar Borisov
Community Champion
February 22, 2023

Hi Vladimir,

Looks the query you are using is not retrieving any issues so that's the reason why nothing has been updated. When you use the JQL inside the Automation , you can use "Validate query" which is positioned just below the JQL window. It will just check if there are any issues returned by your search criteria, without updating them.

My assumption is you will have to use "issuetype = Score" instead of "type = Score".

Hope that helps!
Velizar

Vladimir Sumilin
Contributor
February 22, 2023

Hi Velizar,

Thanks for your reply, I have changed on "issuetype = Score" instead of "type = Score". It's still not creating anything + I also tried to validate the query and I have 0 errors. 

Screenshot:

newscreen.PNG

Velizar Borisov
Community Champion
February 22, 2023

It might be the case that you don't have any issues at all that are satisfying the criteria about the due date. Can you try place the same JQL in the Advanced Issue Search , just like @Alex Koxaras _Relational_  purposed? 

Vladimir Sumilin
Contributor
February 22, 2023

Thanks @Velizar Borisov

I can run my query right now, but I'm getting a new error, could you look at it? I edited my question. 

Like Velizar Borisov likes this
Velizar Borisov
Community Champion
February 22, 2023

Seems like your Score ticket, that you're creating with the automation rule, is at the same level as the sub-task ones, meaning it is logically under the Task/Story/Bug level. 

If that's the case you might need to check your creation action and see what is the value for "Parent Issue" . If you need the Score sub-task to be under the Task/Story/Bug that triggers the rule, than simply use "Trigger issue" as a value in the "Parent Issue" set up.

Like Vladimir Sumilin likes this
Vladimir Sumilin
Contributor
February 22, 2023

I'm trying to create an issue from a child issue and I also need to connect it with a parent of that child issue.

Screenshot of Create a new issue:

firstScreen.PNG

Also I added Linked Issues:

secondIssue.PNG

I made something wrong or I just can't understand what is wrong here. 

Suggest an answer

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

Atlassian Community Events