Forums

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

variable CustomFieldManager mask a binding variable of the same name

ghalia sidi amemou
March 31, 2023

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def emailField = customFieldManager.getCustomFieldObjectByName("Email du client")
def clientEmail = issue.getCustomFieldValue(emailField)

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Thanos Batagiannis [Adaptavist]
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 Champions.
September 29, 2017

Hi Alex, 

Did you try to change the order of the post function, I think you should put it first. 

Can you please let me know if this does the trick ?

Kind regards, 

Thanos

Alex Christensen
Community Champion
October 2, 2017

Hey, Thanos - thanks for the response. Yes, I did try this. Unfortunately, there was no change.

I think this is because I'm changing the assignee value after each issue is created, so there's no event or post-function that tells the system to reindex the issue I just updated. Still haven't been able to find a way to reindex an issue or set of issues in my groovy script.

TAGS
AUG Leaders

Atlassian Community Events