Hi Everyone!
We need to obtain the value of the customer request type since, from this, some fields must be hidden on a screen within the workflow. Example, if I choose "Help It" show me a sub-category custom field, since there are several sub-category fields we need that based on the customer request type that is changed as well show the corresponding sub-category field.
The code attachment is entered as a behavior but when set to a field of type text the result is encrypted
Hello,
You should use the Service Desk Api to get the value of the Request Type. You can find an example here
Hi
We tried the solution putting the script as validator in a transition, but wanting to do it from a behavior does not work.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How could we call the value of the field since a behavior?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are the error in the atlassian-jira.log?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the code that runs
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.issue.customfields.option.Option
import com.atlassian.jira.issue.customfields.CustomFieldType
def TipoSolicitud = getFieldByName("Tipo de solicitud");
long idTipoSolicitud = 10001
CustomField cfTipoSolicitud = customFieldManager.getCustomFieldObject(idTipoSolicitud);
String solicitud = underlyingIssue.getCustomFieldValue(cfTipoSolicitud)
TipoSolicitud.setFormValue(solicitud)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You should use the Service Desk Api to get the value of the Request Type. You can find an example here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.