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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Atomation compare a date to today's date

Deleted user Jan 08, 2021

Hi everyone,

I would like to create an automation: when the "start date" field is equal to today, automatically go to the next state of the workflow.

Can you help me?

 

Liza 

2 answers

1 vote
Dirk Ronsmans Community Leader Jan 08, 2021

Hi @[deleted] ,

You have a few options there.

You will probably have  to use a Scheduled automation to check every x hours but then you can use a JQL like:

startdatefield >= startOfDay()

OR

startdatefield >=now()

it kinda depends on where you want the "now" to be

Salut  @Dirk Ronsmans 

Merci à toi!

Je pense que "maintenant" est la date et l'heure? Je veux juste le jour.

 

Je voudrais compléter cette fenêtre mais il n'est pas possible de commencer une règle en comparant un champs avec une valeur

 

Capture d’écran 2021-01-08 à 14.19.47.png

Dirk Ronsmans Community Leader Jan 08, 2021

Hi/Bonjour @[deleted] , 

it might be easier to use a "JQL Condition" component for this step than a "Advanced Compare condition", it gives you a bit more freedom.

In that condition you can specify the JQL startdatefield >= startOfDay()

StartOfDay would be jus the day (or at least 00:00 in hours) so that should match your requirement.

The condition component that you are configuring expects smart values https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

That also works but a bit trickier maybe.

You could put {{issue.startdatefieldname}} equals 

and then set a dataformat on the {{now}} function https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/

As it can get tricky with the dateformatting the JQL is usually easier and not that much more of a performance hit. If it does happen to be super slow for some reason we can revisit of course.

0 votes

@[deleted] 

You can add a trigger as when a filed changed -> select field as start date

add a condition as if issue matches JQL "Start date" =startOfDay()

Then action as transition issue to -> select a status

Please find the screenshot bellow for the reference.

kindly accept the answer if this is helpful!!

jql2.png

Deleted user Jan 08, 2021

In fact I add condition in transition in workflow. I will try with starOfDay()

 

Capture d’écran 2021-01-08 à 14.56.49.png

Dirk Ronsmans Community Leader Jan 08, 2021

I think you may have understood "condition" incorrectly.

A condition is when this status transition may occur. So even if someone wants to do this manually they cannot do this unless the rule is true. This is not an automation.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

241 views 1 6
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