Hello, I am wondering if someone can help me here.
I am trying to configure the following rule:
in the edit issue step, the following configuration is set:
{
"fields": {
"customfield_14609": "{{issue.customfield_10700.jiraDateTime}}",
"customfield_14610": "{{issue.duedate.jiraDateTime}}"
}
}
The rule works, but it's always one day behind. Our jira timezone setting is set to system's default, which is CEST (GMT +2:00), and my user profile is using the same.
The expected:
Target end (customfield_14610) is the same as Due Date
Target Start (customfield_14609) is the same as Start Date (customfield_10700)
Thanks,
Thales
If someone comes across the same problem, we came to the conclusion that the problem is actually with the fields "Target Start" and "Target End". These fields are created by Portfolio for Jira (Advanced Roadmaps), and it's related with BUG JPOSERVER-2358
Hello,
Is it an option to use another variant instead of JiraDateTime?
See https://confluence.atlassian.com/automation/date-and-time-functions-993924864.html
regards, Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Marco Brundel thanks for the answer, appreciate you taking the time.
So I tried using .shortDate and even .withHour(20) to see if that could fix the timezone thing (my initial suspicion).
None changed the outcome, but if I do this:
{
"fields": {
"customfield_14609": "{{issue.customfield_10700.plusDays(1)}}",
"customfield_14610": "{{issue.duedate.plusDays(1)}}"
}
}
It works:
Due: 21/Dec/20
Start Date: 01/Oct/20
Target start: 01/Oct/20
Target end: 21/Dec/20
But deliberately adding +1 day in the code so the dates match look a bit weird, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Thales Dos Santos
This is indeed weird that this would be necessary.
For the sake of completeness:
When you look at General configuration what is the “default user time zone” in your Jira?
And if you create or change an issue by yourself, is the correct time shown in the history of the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the system default timezone is
Default user time zone = System default: (GMT+01:00) Amsterdam
My user's profile is also set to use the Jira default.
And the time in the history is correct.
I have raised a ticket to Atlassian Support about this, hoping they will know something.
Let me know if you have any other insights.
Thales
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
how does it work if you don't have the fields filled via "additional fields", but by selecting them via "choose field ..." and then choosing to copy from current issue?
In this screenshot is Planned a custom field, type date picker.
regards, Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The fields I am trying to change don't appear in the list, it tells me to use the advanced section:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As above, I want to update the Target Start of one subtask based on the value of the Target Start of another, but field is not in the edit list.. Was there an answer? or alternative solution.
or did I just find the answer. when I re read the comments again..
The expected:
Target end (customfield_14610) is the same as Due Date
Target Start (customfield_14609) is the same as Start Date (customfield_10700)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.