I've created a filter and want a column returned that displays the Day of Week for the Created field.
Story Type - business
Created - 25/Jul/23
Day Of The Week (Created) - Tuesday <------------- This is the column I want
You'll need a field to refer to in search, and to add as a column. You could though...
See how I'd do it below!
---
Custom Field:
You'll need to a Product Admin, and then...
Note: I'd use a shared field even if this is a Team-managed Project, so the field is consistent across all Projects.
---
Automation Rule:
---
A few notes on this approach:
---
Let us know if this works for you!
Ste
Hi @Ste Wright
This could also be done using the date/time formatting functions to capture the day of week for the date, without the need for the if/else.
And when a select field was still desired for the day of week field, that could be converted from text to select field, id value with a Lookup Table.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do I reference the variable named TheDayOfWeek in the automation rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please review the data/time formatting information here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#--
That describes the use of the format() function, including a reference to the supported DateTimeFormatter values. For example, the one for the complete day of week name is:
{{issue.created.format("EEEE")}}
This can be used directly or once that is stored in the variable, a variable can be referenced by using the name:
{{myExampleVariableName}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Nice! I forgot about that date/time value! The lookup table was also excellent, I've not worked with those before.
@Michael Bevilacqua - I tried Bill's recommendations, so there's two options here.
---
Text Field:
If you're just using a text field, not a select field, this rule should work:
---
Select List Field:
You can avoid the IF/ELSE statements, but will need two custom fields:
You can then create the rule below - a few notes on this approach:
Rule:
---
Let us know what you think!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bill,
Thanks for the thought! I'd like a report showing which day of the week and issue was created. Our team thinks we experience production incidents mostly on Fridays, so I wanted to see if that is the case based on the Day of Week of the issue create date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is not possible with the out-of-the-box JQL features.
What problem are you trying to solve by doing this? Knowing that may help the community to offer suggestions. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information, Michael. Is this seems information to support a short-term (and not permanent) investigation, perhaps consider using the advanced search to find all issues for a time range, export them to a spreadsheet, and then perform the analysis there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.