Comments
-
Yup, you can do that. Create a new class using ScriptRunner Script Editor Then you can call it on Script Console: If you created the script in a new folder, please make sure to follow this guide to import the class.
-
Since its the Radio button, the behavior is expected to work when the value in the field is changed I assume. By default the radio button's value is None. Make sense why you need to change the radio button field value to "Yes" to make it required. What is your requirement?
-
Your scripts look valid, try to print the log to check it: import com.onresolve.jira.groovy.user.FieldBehaviours import com.atlassian.jira.issue.priority.Priority import groovy.transform.BaseScript @BaseScript FieldBehaviours fieldBehaviours def CauseCodeField = getFieldByName("TEST SK DropDown Field") def CurrentField =…
-
If you have a collection of usernames, you can use for loop to add those users to the watchers. This code is untested but should give you a rough idea. import com.atlassian.jira.component.ComponentAccessor; import com.atlassian.jira.issue.MutableIssue List userNameList = ["Atanu_Mandal", "user1", "user2"] def userManager =…
-
Hi Manikanta, It is possible using behavior ScriptRunner. The below code should give you a rough idea: /** * List A has value 1,2 * List B has value ABC, DEF * Purpose: Auto-populate List B from value List A */ import com.atlassian.jira.component.ComponentAccessor import org.apache.log4j.Level import…
-
You only need to change from this: def desc = getFieldById("description") to this: def desc = getFieldByName("Reference Links") The rest should be the same
-
Hi Peter, You can fix it by change: String jsValue = issue.getCustomFieldValue(jsField).toString() String cdValue = issue.getCustomFieldValue(cdField).toString() To: def jsValue = issue.getCustomFieldValue(jsField) as Double def cdValue = issue.getCustomFieldValue(cdField).toString() as Double Remove: //int jsInt =…