Hi, i have a code in the post function, condition "if Is1 == 'ABIS Colvir':" work only expressions in Latin...
If we write the condition in Russian, then it does not hold, Example
"if Is1 == 'АБИС':"
what could be the problem?
from com.atlassian.jira.component import ComponentAccessor
from com.atlassian.jira.issue import CustomFieldManager
from com.atlassian.crowd.embedded.api import User
from com.atlassian.jira.issue import Issue
from com.atlassian.jira.issue import MutableIssue
from com.atlassian.jira.issue import IssueManager
from com.atlassian.jira.security.groups import GroupManager
from com.atlassian.jira.security.roles.actor import UserRoleActorFactory
customFieldManager = ComponentAccessor.getCustomFieldManager()
customField = customFieldManager.getCustomFieldObject("customfield_10100")
Is1 = issue.getCustomFieldValue(customField).getValue()
Ur_dit = ComponentAccessor.getGroupManager().getUserNamesInGroup("K2_ABIS")
if Is1 == 'ABIS Colvir':
for key in Ur_dit:
issue.setAssigneeId(key)
I tried the below code in script console and it returns true
def sa='АБИС'
if (sa == 'АБИС')
return true
I am not sure but it seems your if needs parenthesis { } .
try some logging and see the values returned by JIRA for the customfield
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.