Bug 1650252

Summary: [Regression] Static Dialogs are not Populated when Submitting API Requests for Service Catalog
Product: Red Hat CloudForms Management Engine Reporter: myoder
Component: APIAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Parthvi Vala <pvala>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.9.5CC: akarol, dmetzger, jprause, mfeifer, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1651291 (view as bug list) Environment:
Last Closed: 2019-02-12 16:50:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1651291    

Comment 5 Parthvi Vala 2018-11-20 10:46:27 UTC
FIXED. Verified on 5.10.0.24.20181113213923_03b81fd.

Request: POST /api/service_catalogs/:id/service_templates/:id
Query: {
	"action": "order",
	"resource": {
		"input_dropdown": "One",
		"text_box": "hello"
	}
}
Response: {
	"href": "https://<ip_address>/api/service_requests/3",
	"id": "3",
	"description": "Provisioning Service [catalog_item_1] from [catalog_item_1]",
	"approval_state": "pending_approval",
	"type": "ServiceTemplateProvisionRequest",
	"created_on": "2018-11-20T10:38:11Z",
	"updated_on": "2018-11-20T10:38:11Z",
	"fulfilled_on": null,
	"requester_id": "1",
	"requester_name": "Administrator",
	"request_type": "clone_to_service",
	"request_state": "pending",
	"message": "Service_Template_Provisioning - Request Created",
	"status": "Ok",
	"options": {
		"dialog": {
			"dialog_input_dropdown": "One",
			"dialog_text_box": "hello"
		},
		"workflow_settings": {
			"resource_action_id": "25",
			"dialog_id": "2"
		},
		"initiator": null,
		"src_id": "1",
		"request_options": {
			"submit_workflow": true,
			"init_defaults": false
		},
		"cart_state": "ordered",
		"requester_group": "EvmGroup-super_administrator"
	},
	"userid": "admin",
	"source_id": "1",
	"source_type": "ServiceTemplate",
	"destination_id": null,
	"destination_type": null,
	"tenant_id": "1",
	"service_order_id": "3",
	"process": true,
	"cancelation_status": null,
	"service_templates": {
		"count": 0,
		"resources": [],
		"actions": [
			...
		]
	}
}

And I checked the automation log, static fields are populated with the supplied value.