Atlassian SDIM RequestType ID

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

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

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.