Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom fields #8

Open
Morialkar opened this issue Oct 22, 2019 · 2 comments
Open

Add custom fields #8

Morialkar opened this issue Oct 22, 2019 · 2 comments

Comments

@Morialkar
Copy link

Hi,
in our Redmine, we have a custom field for an internal number linked to other systems and these would be really useful to have in the extension. I tried modifying the schema, pref.js and constants.js and I'm still unable to add the custom field to the extension. Would you happen to have any pointer there? I don't seem to find any mention of the actual fields that are loaded anywhere else.

@Morialkar
Copy link
Author

Thanks a lot, I was able to make it work for my custom field, the hard part will be to add an interface in the preferences to make it work for any custom field, but I got an idea on how to make it work, I'll PR when it's done.

The part I was missing was the convertion between the JSON object received from Redmine and your storage object, which is done in the extension.js file. During conversion, you're removing (for good reasons) the whole custom field array, making it pretty hard to access it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants