Hi,
My customfield's(extends TextCFType) getVelocityParameters is not working for view. It is working while creating the issue, editing the issue, but viewing/refreshing the issue not executing getVelocityParameters(I tried printing something in this method, but did not prints anything if I refresh the issue).
Could you please let me know where I am missing?
Thanks a million!
Do you have a "view" template? Is there any condition in getVelocityParameters which prevents it from executing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have view template. my first statement in getVelocityParameters is print. Control is not entering into this method and so not printing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have any value getting stored for that field? The method will be executed only if the field has any value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds like the getVelocityParameters might have a different signature than expected. Try using @override. If the signature don't match the parent's method will be called.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Jobin and Matt!
Actually I'm cooking up some value to send back to view template if the customfield has no value. Does it go to view template at least even if it is not executing the method (I can manage something in the view template)?
Matt, yes I'm overriding it. And I'm using latest signature(without convertion parameter).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should be possible. Btw, dumb question - You have it on View screen, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the delayed discussion!
My plugin has 10 modules, so I couldn't test it and confirm from where I am getting the problem. So I created a brand new plugin with customfield module with atlas sdk 3.10.4(for Jira 4.4), customfield extending TextCF, added view template with code "Hi hello". After atlas-package and atlas-run, I created a custom field of this type added global projects and added to default screen. When I go to configuration, the default value it shows is "Hi hello". I created a task issue, but did not find this "Hi hello" on issue browse page. I tried setting required flag of this field in Custom field configurations, still not asking for value in edit/create of the issue. Even I looked at the configurations of schemes, everything seems the default schemes.
I think I'm missing something, could you please help me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the log file for errors related to the field not getting displayed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.