My jira profile time zone is set to Asia/Kolkata.
{{issue.Actual start.convertToTimeZone("UCT").jqlDateTime}} -> Converting to UCT time zone
{{#changelog.Actual start}}{{fromString.toDate.convertToTimeZone("UCT").jqlDateTime}}{{/changelog.Actual start}} - > Not converting to UCT time zone. This is still giving Asia/Kolkata time zone
It might be your clause is not completely right.
Can oyu try:
{{#changelog.Actual start}}{{fromString.toDate.convertToTimeZone("UCT").jqlDateTime}}{{/}}
Still it gives Asia/Kolkata time zone
I believe {{#changelog.Actual start}}{{fromString.toDate.convertToTimeZone("UCT").jqlDateTime}}{{/}} is same as {{#changelog.Actual start}}{{fromString.toDate.convertToTimeZone("UCT").jqlDateTime}}{{/changelog.Actual start}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I then that when you use the change log option, all information is text and you need to convert the info first to Date Time again, before converting
See following post on the community:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - DevoteamI was indeed using toDate but still it is not converting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi as stated in the community post.
You first need to create a variable that gets the value from the change log and then you should convert that to date/time and then convert it.
You could reach out to Atlassian Support, to see of this can be done in a single action, but I don't think so.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to Marc's suggestion:
There are several smart values which, for some reason, cannot be used in / with smart value functions directly in rules. Instead they collapse to null values and fail silently. The only way to know this is through experimentation.
The suggested work-around to first save the value in a created variable and then use it later often helps...with the added benefit it can be easily logged for diagnostics.
This technique also helps access dynamically populated fields (e.g., from some addons) and when building dynamic JSON or HTML expressions.
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.
Hi @Marc - Devoteam @Bill Sheboy
The above approach is not working. What I found was {fromString.toDate}} is treating as UTC time zone by default all though it was logged with Asia/Kolkata timezone. I could convert to other timezones for example {fromString.toDate.convertToTimeZone("Australia/Sydney")
}}.
Regards
Gopi
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.