-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
2
-
Issue Summary
This is reproducible on Data Center: (yes)
A 3rd party addon, Dynamic Forms (vendor: Deviniti) can adjust the portal form according to a selection of value/s in its customfield.
When used within an Asset Postfunction (set an objects attribute with a predefined value) - a customfield placeholder ( ${customfield_nnnn${0}} ) will set the correct value/s will be set as Text to a Text attribute;
e.g. The Dynamic Forms customfield has 2 options selected: "Option A", "Option X" - the postfunction will set the value "Option A, Option X" to a text attribute.
BUT, if used in the Portal/Jira Create or Edit screen - within an Assets Custom field's Filter Issue Scope, the placeholder is never replaced with any value (not option ID nor Label) and the Assets Field can never find objects using the plceholder within the Filter issue scope.
Steps to Reproduce
- Use Dynamic Forms Select customfield with a few options, e.g. "Option A", "Option X" (minimum configuration)
- Create a few Assets objects, with name matching the Dynamic Form Select options "Option A", "Option X", add a Text attribute to this object type
- Configure an Assets customfield to populate any of these objects, with a Filter Issue Scope using a placeholder for the Dynamic Forms customfield (tested with .key, .id, .label, .name - same results): Name LIKE ${customfield_nnnn}
- configure a circular transition (from any status to itself) with a postfunction to populate the Text attribute of the object in the Assets field with the same placeholder used in the Filter Issue Scope
- Create a Ticket in the portal - select Option X on the Dynamic form, note that the Assets field cannot find an object
- Once the ticket was created (Assets Field is empty), remove the Filter Issue Scope from the custom field configuration, and edit the ticket by setting the object "Option X" in the Assets field
- execute the circular transition
Expected Results
Step 5 - Asset objects will be filtered according to the placehoder, allowing the object "Option X" to be selected
Actual Results
Step 5 - No objects found
Step 7 - the Text Attribute of the object "Option X" IS populated with the string "Option X" coming from the Dynamic Forms placeholder!
...
Workaround
See elaborated workaround in comments. Thank you Steve!
- links to