Update question summary and details based on @Hannes Obweger - JXL for Jira suggestion~
How could I extract the start and end date using JIRA automation and write it to a date-based custom field?
---------
JIRA prompts "Field 'Project start' is not searchable, it is only sortable." for the default field "Project start" in JIRA product discovery. What I want to do is to create JIRA automation to sync the dates and components/categories between JIRA software and JIRA product discovery.
I can't even find this field in custom fields, but it does have id "cf[xxxxxx]".
Anyone knows the root cause and the possible solution/workaround? Thanks.
Hi @Amy Hu
the project start field is a relatively new field, and it looks like this aspect hasn't been implemented yet. It may be worth raising this with Atlassian; e.g. there's a "Give feedback" option in the JPD project sidebar.
As a workaround, I can think of two things:
First, as the "project start" field is stored internally in the format
"{\"start\":\"2023-07-01\",\"end\":\"2023-09-30\"}"
you may be able to extract the start and/or end date using Jira Automation and write it to a date-based custom field. You can then filter based on this custom field. I'm not a big Automation expert, so I can't really advice on how to write such a rule, but perhaps someone else can lean in.
Second, if you're open to solutions from the Atlassian Marketplace, you may want to have a look at the app that my team and I are working on, JXL for Jira.
JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It fully supports the project start field (and many other JPD fields), meaning that you can easily filter your issues like e.g. so:
Once you've narrowed down your list of issues, you can work on your issues directly in JXL, trigger various operations in Jira, or export your issues with just one click. (Note that JXL can do much more than that: From support for configurable issue hierarchies, to issue grouping by any issue field(s), sum-ups, or conditional formatting.)
Any questions just let me know,
Best,
Hannes
Hi @Hannes Obweger - JXL for Jira
Appreciate! Option 1 looks feasible to us at this moment.
I've changed the question summary and details a bit to seek for help from others. :)
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know there is a general answer above, but since I had to work through this, I thought I'd share my process and answer:
{
"fields": {
"customfield_13462": "{{issue.customfield_13683.match(".*start.*([0-9]{4}-[0-9]+-[0-9]+)")}}",
"duedate":"{{issue.customfield_13684.match(".*end.*([0-9]{4}-[0-9]+-[0-9]+)")}}"
}
}
Additional Notes: Use the Log action if you run into any trouble with the matching. For example:
Target Date: {{issue.customfield_13684.match(".*end.*([0-9]{4}-[0-9]+-[0-9]+)")}}
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.