Jhayes90
(Jhavel Hayes)
June 26, 2024, 1:32am
1
Is it possible to dynamically set requesttypeid field in the atlassian cloud jira sdim? Im attempting to set the field dynamically using velocity as im able in the other fields such as description and summary but its erroring out.
#foreach($request in $plan.requests)
#foreach($item in $request.items)
#if ($item.name == '*disabled*' && $item.value == 'true')
2534
#end
#end
#elseif ($item.Operation == 'Remove' || $item.Operation == 'Add')
2512
#end
#end
#end
fmunerato
(Felipe Munerato)
June 28, 2024, 3:16am
2
Hi @Jhayes90 ,
Try to put the requestTypeId value in a variable inside velocity as follows:
#foreach($request in $plan.requests)
#foreach($item in $request.items)
#if ($item.name == '*disabled*' && $item.value == 'true')
#set($reqid='2534')
#end
#end
#elseif ($item.Operation == 'Remove' || $item.Operation == 'Add')
#set($reqid='2512')
#end
#end
#end
$reqid
Regards
1 Like
system
(system)
Closed
August 27, 2024, 3:16am
3
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.