Run workflow after creating a new issue

Hello.

Can I create a work flow that will be launched immediately after creating a new task, and not while it is in draft? What property or method should I use for this in Javascript when writing a workflow?

0
4 comments

Hello,

I'm Lena from the YouTrack Team. 

It looks like the isNew property is what you are looking for. 

 

0

A problem is that checking a new created task through this property doesn't work.

  guard: (ctx) => {
    return ctx.issue.isNew;
  },
0

Hello,

I'm sorry for misleading you. Please use the becomesRepoted property instead. 

 

1

Thanks! It works for me.

0

Please sign in to leave a comment.