Hello,
Is it possible to give to the users the opportunity to choose whether to import a custom field or not?
Thanks,
Petya
Of course you can but you'll have to implement the whole logic by yourself. It's not that hard.
What you actually want is following:
The idea is simple what's in ExternalIssue object gets imported, if you don't put there custom fields data it will not get imported. So you need to control what gets put into your ExternalIssue in your IssueTransformer and you'll be fine.
Hi Pawel,
thank you for your suggestions. Here is what I did:
final ValueMappingHelper helper = configBean.getValueMappingHelper(); if (helper.isWorkflowSchemeDefined()) { project.setWorkflowSchemeName(helper.getWorkflowSchemeName()); }
However, if we want to use the workflows, I must add some changes in that code which I don't want, because then the merging with the new version would be complicated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you noticed that AbstractConfigBean2 has initializeValueMappingHelper that you can override and put your own mapping helpers there. So while building your ValueMappingHelper you could already ignore fields that were not selected for import.
In ImporterFieldsMappingPage the valueMappingHelper is reinitialized so you don't need to worry it was used before. At least that's my impression from reading the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I develop a Savannah importer plugin as part of your JIM plugin. The thing I want to achieve is to add an opsion "Skip" to the drop-down menu on the "Set up custom fields" step. Choosing that the user could decide not to import values from that particular field. Can I do that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by "import" a custom field?
Are you importing from another system using the system importers? Drawing data in via a remote link? Something else?
Also, which system? I guessed Jira, but I've just noticed I could be absolutely wrong.
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.