Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation to copy User Field from PD to JSW

Jenifer Kuntz
Contributor
October 11, 2023

When we create a delivery issue from Product Discovery we are trying to use Automation to copy fields and I am running into some issues.

 I have been able to copy custom fields using Copy, Destination issue and selecting the fields.

I had a few issues with the fields being different field types in PD and JSW but worked that out but I am still stuck on People fields.

IN PD the People field looks like a multi select user field so I created that type of field in JSW. I still am not seeing the PD People field when I am trying to copy the field.

Is there another way I can copy this field over?

Thanks!

 

 

1 answer

1 accepted

2 votes
Answer accepted
Omar Bennani
Contributor
May 11, 2023

Figured it out for my self! So here's what you need to do. Must be an advanced update. In our instance it's customfield10275. It must be a string and you need to match the structure. You also need to match the expected dates. For instance, i tried doing a custom start/end interval. That's no bueno, it won't take it. If you want to assign a start/end as i do below for quarters, you need to align the dates to be the exact same and the it'll take it.

{
"update":{
"customfield_10275": [{
"set": "{\"start\":\"{{now.StartOfMonth.withMonth(1).jiraDate}}\",\"end\":\"{{now.withMonth(3).endOfMonth.jiraDate}}\"}"
}]
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events