I have one EPIC issue which contains a Multiple value selection Custom Field.(created a normal multiline field and converted it into Multi Select Value Field using JQL).
And this epic issue has a Parent Field which also contains same custom field.
My requirement is , when ever i will add any value in child issue, my parent field also get updated with the value if that wont be there in parent issue's custom field.
So for this i have tried a listener and also tried to fetch those data present in Child Issue's Field. And one qes even if i got those data , how to compare both custom fields and add those only which are unique?
I know one method "Intersects", but not sure how to use it.
But i am unable to do it. its not working in script runner too.And how to check those values i got?
Can anyone help me on this.? Any Help will be appreciated.
def issue = event.issue as Issue
//def issue1 = issue.getIssueType().getName() == 'EPIC'
UserUtil userUtil = ComponentAccessor.userUtil
//def customFieldManager = ComponentAccessor.getCustomFieldManager()
def customField = ComponentAccessor.getComponent(CustomFieldManager).getCustomFieldObject("customfield_10602")
def myUser = customField.getValueFromIssue(issue)
log.info "check this user: " + myUser
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event