Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




GetIssueCustomFields

web-app

Hi

I'm using the GetIssueCustomFields WS in one of my plugins and sometimes the ExistingData of the objects I get is empty.

I can only reproduce it by repeating the call to the function. But the number of repetitions I have to do is random. I don't have a logged exception in gemini, it just don't fill the field.

Perhaps you have an idea ?

I'm using the simple ws not wse.

Regards,
Alain

epsilon
· 1
epsilon
Replies (9)
helpful
0
not helpful

Hi Alain,

Does this occur to a specific custom field only? What type is that custom field?

When you first call the function does it return the expected result?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

It seems to occur only when the custom field refers to lookup data. I'm going to test it with a simple text field custom field.

The call to the fuction works most of time but sometimes not.
It can happen the first time I call the fuction but also only after 50 calls.

Regards,
Alain


epsilon
· 1
epsilon
helpful
0
not helpful

I tested it and it happens with all kind of custom fields.

Alain


epsilon
· 1
epsilon
helpful
0
not helpful

Alain,

I've tested this and can not reproduce the problem.

The only other thing that can happen is that you have created the custom field after the issues were created. Then the issues that were not updated after the creation of the custom field will not have any data. Is that the case with you?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I'm using the GetIssueCustomFields function in the IssueCreated event handler code.

The custom field data is stored by the Gemini. I only access it after the creation of the issue.
But perhaps my plugin is executed before the issue creation ? is it possible ? I don't know how gemini plugin system is written...

Perhaps you can give me more details about it ?

Alain


epsilon
· 1
epsilon
helpful
0
not helpful

I see, yes the IssueCreated event fires before the custom field is updated.

At the moment there is no way to trap for custom field events.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Sorry but you didn't answer my question...

I would like to know when the code in my plugins is executed.
Does the execution start at the same time that the issue creation process ? Or does it start once the issue is created ?

Sorry if my english isn't easily understandable :)

Alain


epsilon
· 1
epsilon
helpful
0
not helpful

The event fires after the issue is created BUT before any associated data, such as custom fields, is created.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Ok that must be the problem.
I'll try to fix it with a timer...

Thanks
Alain


epsilon
· 1
epsilon