Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Template plugin field in behavior script

Rajeswari Thangavel
Contributor
June 21, 2018

Hello,

We have a plugin Issue Templates plugin. There is a field (capabilities) related to that plugin which lists all the templates into that field.

I wanted to hide that field based on select field value. But unfortunately I am unable to do so where the same script works with other custom field.

https://marketplace.atlassian.com/apps/1211044/issue-templates-for-jira?hosting=server&tab=overview

Script I used :

import com.onresolve.jira.groovy.user.FormField

FormField requestType = getFieldById("customfield_13600")
FormField party = getFieldById("customfield_10721")
FormField capabilities = getFieldById("customfield_12603")


if (requestType.getValue() == "Activation")
{
capabilities.setHidden(false)
party.setHidden(false)
}
else
{
capabilities.setHidden(true)
party.setHidden(true)
}

1 answer

0 votes
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2018

Hello @Rajeswari Thangavel

If customfield not work with behaviours, that means that customfield doest have some methods to do so,

Submit request to plugin developers. Only they can help you with this question.

https://marketplace.atlassian.com/apps/1211044/issue-templates-for-jira?hosting=server&tab=support

Suggest an answer

Log in or Sign up to answer