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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

If a Story's End date is after the End date of the Epic defined in field "Epic link" - reported

Hi Community, 

I have already tried to come up with a solution through the different community questions and found one very similar but I keep failing at one point. I have attached a screenshot of the current automation. 

The following problem accours:

inconsistency of planned Story End date versus End date in parent Epic shall be reported to be able to fix it. 

If a Story's End date is after the End date of the Epic defined in field "Epic link" then this shall be reported. In the request from my co-workers was have a list shown. I decided an Email should be send might be better. As can be seen in the example. Automation.PNGI created a SmartValue  and to be checked later within the Epic End Date. So the system is able to check those two dates with each other. I've tried "due date", I also have tried different spellings. Nothing has worked. SmartValue.PNG

Comparing SmartValue.PNG

 

As you can see on the last picture, from the audit log, it seems to be a success but it never sends out an Email. The provided issues are examples from myself to test this. 

Beispiel.PNG

It seems not to compare the smart value with the end date in the epic. Please know, that this is my first time with smart values and I'm new to the project at this company. So I'm not sure what level or stage of Project this is. I only  know so far that we arent't allowed to change workflows. templates, screens, fields. 

I'm used to be able to change all of that. But this project is very restricted. So my only options seems to be automations.

Thanks to anyone who is able to help me solve this. 

 

5 answers

4 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 12, 2023

Hi @Carola Tietz -- Welcome to the Atlassian Community!

Is the End Date a custom field you have added?

Out of the box, Jira uses the Start Date and Due Date fields for what I believe you are trying to manage.  Once we have confirmed that, we can improve your rule a bit...such as:

  • trigger: the field (yet to be confirmed) has changed
  • condition: check the issue type
  • advanced compare condition: to check if the story's date is after the epic's date
  • action: send the email

 

In the meantime...

Smart values for rules are name, spacing, and case-sensitive.  And the often do not match the displayed name for a field on the screen page.  I suspect if you are using a custom field named End Date that the smart value is different.  You can identify the smart value for a field using this how-to article:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Hi @Bill Sheboy 

Thank you. yeah I actually tried the dev option on the website to use an Audit Log (like someone suggested. Can be seen here in the picture.

AuditLog correct.PNG

It shows later in the audit the correct changed End date! SO my next move would be to change Variable of the smart value which I circled in the extract. But that would mean I also have to change the advanced comparing of those two variables. In this pic:

B Example.PNG

 

If you have additional info let me know. I'll try the new findings from you and Seifallah (down below) and I hope to get it right soon.

 

Greetings 

Carola

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 17, 2023

That is comparing the field to itself (assuming that the enddate and customfield_14803 are the same field).

What you originally asked was a check on: is the story's End Date > story's parent's End Date.

Please try this using the isAfter function, again assuming that custom field id is correct and it is a date or date/time field:

{{issue.customfield_14803.isAfter(issue.parent.customfield_14803)}}

Yes you are right with your assumption in the first paragraph. It's the same custom field. 

 

Hmm, I thought that is the same as in the story End date > than the Parent End date. Which is now the same custom field. That I didn't know in beginning. So I'll try your proposal & come back to you.

 

Greetings

Carola

Alright, sadly it still does not send out an email. I think it always stops at the last part. CustomField.PNG

As you can see I changed the comparing condition. And even made sure that we can see both end dates in the Log file (12.12.2023 Story &  05.11.02023 Epic)

But somehow it still did not send an Email. If you have an idea feel free to share it, but I would also understand if not. Because I have no idea what's wrong anymore.

 

Example.PNG

 

Thank you for your help.

Greetings Carola 

I changed it one more time to this:

Solution.PNG

and it works! I now just need to make sure the email is now send to the correct person. But I'm sure I'll get that on my own. 

 

THANKS to EVERYONE who got me there. It was a journey. :-)

 

Greetings 

Carola

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 18, 2023

Well done!

And fascinating...It appears the "equals" condition in an advanced compare condition cannot detect that true in the Second Value means Boolean true...And that is why the isAfter() did not work.  It must only be a text value for the Second Value!

The work-around I just learned is adding a dummy expression for a true (or false) result for that Second Value.  For example: {{now.equals(now)}}

Like Carola Tietz likes this

I did had to write a final update on the post. Now it works perfectly and I even were able to make the email look pretty with a link & stuff. You can have a look if you like, but it's a long answer. :-D

Thanks again. Have a blessed day. 

Cheers

Carola

Like Bill Sheboy likes this
0 votes
Answer accepted

I do have to correct my final Answer.

It did sent out an email but weirdly did it in any of those cases. I had another look at it with a colleague and I will show how the exact solution looks like in case so. needs to create something similar. The problem is the system can not understand the comparison of the customer field ( you can see them in the extracts) as in parent and child what I did earlier. But by creating two Smart values for each particular field, it works.

 

Step-By-Step.PNG

Trigger : End date change of a Spike or Story. 

Optional: Audit Log of Story EndDate {{issue.customfield_14803}} to be able to check in the Log if it is using the correct data

Creating Smart Value: This will be needed by the comparison later

SMStory.PNG

Now change to the Epic element  and repeat.

Optional: Audit Log of Epic EndDate {{issue.customfield_14803}} to be able to check in the Log if it is using the correct data

Creating Smart Value: This will be needed by the comparison later

 

Epic.PNG

Compare: Now compare those two smart values with each other as in:

ComparingFinal.PNG

 

Final: Trigger Email sent out with example: 

Email.PNG

 

If you are interested in the result, it's this here:

Result.PNG

 

That's it. I'm sorry that it is that long but everything works. I did test in every direction for what is been asked and it looks good.

 

Thank you guys for time and effort. Maybe this will help someone at someday.

 

Cheers

Carola 

0 votes
Answer accepted
Seifallah Bellassoued
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 12, 2023

Hi @Carola Tietz

Welcome to the community!

In the condition under the branch you can use the comparison below. No need to define a variable.

2023-10-12 12 03 15.png

{{issue.enddate.isBefore(triggerIssue.enddate)}}

Best Regards,

Seif,

Seifallah Bellassoued
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 12, 2023

I forget to mention that you should edit the enddate by the follwing smart value

{{triggerIssue.enddate}}

Like Carola Tietz likes this

Hello @Seifallah Bellassoued 

I tried your Epic Advanced compare condition as can be seen in the pic but I still didn't received an Email with the Out of range Boundary. I might have the Smart value not correctly. SB Solution example.PNG

You can see the issue #5801 is a story which I changed to some day late November. The parent issue Epic #5721 is the correct related issue which enddate is beginning of November. So here is the current smart value for your solution example. SB Smart Value.PNG

 

We are getting closer and I'll go through the other solutions from everyone now. If I made a mistake with the smart value let me now. 

Info: I believe it has to do with the {{issue.customfield_14803}} which I used as an audit log, mentioned by someone else. It shows the correct end date which I changed. Maybe I need to include issue.customfield_14803 this somehow into the equation. 

Thanks in advance.

Carola

0 votes
Answer accepted
Bert van Dijk _TMC_nl_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 12, 2023

Hi @Carola Tietz ,

 

Thank you for all the screenshots and description. It helps a lot. However, I don't have a fixed answer.

Would it be possible to add an action called "Log action"? With this, you can add the smart value to the audit log. It could help you with debugging. Could you please confirm the smart value has a value? You also can log the end date of the epic.

I was hoping I did the Smart Value by creating this:

SmartValue.PNG

I'm not sure if the values given were correct and that I've actually created a smart value by that.

I tried it now with the original values from the example on a different question here and my values. So please don't get confused with the changed values. Here is the audit Log:Audit Log.PNG

 

And just for good measures, my test if the Audit Log is correct. 

Testing.PNG

This problem is now finalized, solved and thanks to everyone who got me there! 

First experience with this community is very good and I'm glad I reached out. 

Kind regards

Carola

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events