Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA自动化的触发器报错

tianchi June 8, 2022

Hi Community,

我在进行如下自动化设置时出现了触发器报错。

我想要实现的自动化是可以每5分钟触发一次,自动化规则为当issue在某些状态(非完成状态)下,”Issue创建时长“字段自动输出{{issue.fields.创建日期.diff(now).days}};当issue在其他状态(完成状态)下,”Issue创建时长“字段自动输出{{issue.fields.创建日期.diff(issue.fields.解决日期).days}},请问要如何正确设置呢?

JIRA.png

1 answer

0 votes
Yvan Martin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 15, 2022

Hi there,

Developer from Automation here.

The problem you are running into is the conditions & actions you are using require an issue to be provided. A scheduled trigger without something like JQL to select particular issues has no issue in context to run those actions against, to get this to work you'll need to select "Run a JQL search and execute actions for each issue in the query." then come up with a particular search that returns issues.

Once your scheduled rule is actually finding issues to execute on then you can have actions and conditions related to that issue. Without that you are limited to actions and conditions that don't require a particular issue to exist such as log action, send webhook, etc.

If you require are still having issues then you can get in contact with support here: 
https://getsupport.atlassian.com/



Cheers.

Suggest an answer

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

Atlassian Community Events