You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I've been working to setup JIRA Product Discovery for my group, and everything has been great thus far.
We use initiative tickets as parents to epic tickets, and we're using JIRA Product Discovery in our Product Team for Roadmapping, Prioritization, and Discovery.
I have setup a handful of automations that keep our initiative tickets that are linked delivery tickets in-sync with their idea counterpart.
However, I can not figure out how to get a date field to stay in-sync. I believe it has something to do with how dates are stored in JPD.
I tried using a custom JSON, because I couldn't target the date field in the simple automation UI.
{
"update": {
"customfield_10772" : {
"set" : {
"{{triggerissue.customfield_10742}}"
}
}
}
}
This should work but I get an error:
Error while parsing additional fields. Not valid JSON.
{"start":"2023-01-28","end":"2023-01-28"}
I'm trying to get the date fields to sync for better roadmapping and preventing our PMs from having to do double the work between JIRA Software and JIRA Product Discovery.
@Mike Gargano I've asked an engineer on the team to give more details about the format the field excepts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Mike Gargano , the date field in JPD accepts a JSON string with the start and end property being ISO 8601 date strings.
This is because JPD dates are conceptually intervals as we allow for example values like "Q3 2023" or "Feb 2024".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Martin Sturm , I appreciate you taking the time to respond.
So how would I parse that in JSON coming in from JIRA Software? or going from JIRA Product Discovery to JIRA Software which is setup differently.
I don't think I've ever run into anything like this, I'm not sure how to write the JSON for this, and I couldn't find anything using my google-fu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Mike Gargano , unfortunately I am not very versed when it comes to A4J - what exactly are you getting from JSW?
If it's a string in YYYY-MM-DD (or you can convert it into such a string) would you be able to create a JSON string like this?
{
start: $dateString,
end: $dateString,
}
Then you could set the field with this string and it would show up in JPD correctly as a "date with day granularity".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Martin Sturm , thank you for your response, I apologize for my delayed reply, I got kinda busy towards the end of the year. I will give this a try and report back with how it goes!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Martin Sturm
I tried this:
{
"update": {
"customfield_10742": {
"set" : start: {{triggerIssue.customfield_10772}},
end: {{triggerIssue.customfield_10772}},
}
}
}
And I'm still getting an error "Error while parsing additional fields. Not valid JSON."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried formatting this a couple different ways. This also didn't work.
"customfield_10742": {
start: {{triggerIssue.customfield_10772}},
end: {{triggerIssue.customfield_10772}},
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Mike Gargano - as I said, I am no expert on this matter, but can you do some kind of string concatenation or a JSON.stringify on the value side of things?
Because if I interpret your code correctly you would end up trying to set a string based custom field with an JSON object, right?
"customfield_10742": JSON.stringify({
start: {{triggerIssue.customfield_10772}},
end: {{triggerIssue.customfield_10772}},
}
and maybe the YYYY-MM-DD conversion for the value that you mentioned above already.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bopanna from our support team just found a workaround for this I believe!
He just shared this with me, and I believe it should help you @Mike Gargano
----
{ "fields": { "customfield_10637":"{\"start\":\"{{now.jiraDate}}\",\"end\":\"{{now.jiradate}}\"}" } }
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.