Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,060
Community Members
 
Community Events
165
Community Groups

JIRA自动化的触发器报错

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 Jun 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
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

240 views 1 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you