Coder Social home page Coder Social logo

Comments (18)

MOlausson avatar MOlausson commented on May 16, 2024 1

Fixed from v.2.2.88

from jira-azuredevops-migrator.

MOlausson avatar MOlausson commented on May 16, 2024

Hi @BenOberholzer I would expect this to work. Let's work to track this down. Can you share your config + export log file with me?

from jira-azuredevops-migrator.

BenOberholzer avatar BenOberholzer commented on May 16, 2024

No problem. I have attached both here.
jira-export-log-190530-095606.txt
config-swat.txt

Apparently I can't post a json file so the config file is just changed to a .txt extension.

from jira-azuredevops-migrator.

MOlausson avatar MOlausson commented on May 16, 2024

Thanks. Realized I would like to look at the import log as well. But the config looks fine at a first look.

from jira-azuredevops-migrator.

BenOberholzer avatar BenOberholzer commented on May 16, 2024

wi-import-log-190530-113754.txt
Here's the import log.

from jira-azuredevops-migrator.

MOlausson avatar MOlausson commented on May 16, 2024

@BenOberholzer did you get this resolved? I checked the logs and don't see the issue, perhaps these were for the files you have manually corrected?

from jira-azuredevops-migrator.

BenOberholzer avatar BenOberholzer commented on May 16, 2024

@MOlausson I actually don't recall seeing errors during the import. The items were created but most of the details (title, description, etc.) were missing. It's like it couldn't map the fields on the import. But then again the exported items from JIRA didn't have those details either. I personally think the problem is on the export side, not the import.

EDIT: Just to clarify, I worked around this by exporting them to a 'bug' type and importing them, then converting them to the custom 'technical debt' item once they were in Azure Devops.

from jira-azuredevops-migrator.

cia0mari avatar cia0mari commented on May 16, 2024

@MOlausson I'm having same problem: I'm trying to export Bugs from Jira and importing them as Issues in DevOps but it doesn't set any field. If I import them as Bugs in DevOps it works better.
But still mapping of Jira Status and Priority values to DevOps ones doesn't seem to work; i.e. whatever Jira Status is always mapped to "To Do" DevOps State.
I suppose I'm doing something wrong, so any hint will be appreciated.
I attach my config files for reference.
config-scrum.json.txt
wi-import-log-190610-173851.txt
jira-export-log-190610-173556.txt
Thanks!

from jira-azuredevops-migrator.

hacksoi avatar hacksoi commented on May 16, 2024

I have the same problem too.

from jira-azuredevops-migrator.

XVII avatar XVII commented on May 16, 2024

+1

from jira-azuredevops-migrator.

RubenOuwerkerk avatar RubenOuwerkerk commented on May 16, 2024

+1

from jira-azuredevops-migrator.

Jnaneshnayak avatar Jnaneshnayak commented on May 16, 2024

+1

from jira-azuredevops-migrator.

quadmig avatar quadmig commented on May 16, 2024

+1
It does not give an error but it mostly doesn't load (see attachment0.
The exact same item and config imports correctly if the WIT is something else like product backlog item.
customADOtype

from jira-azuredevops-migrator.

jonada avatar jonada commented on May 16, 2024

I have the same problem. No error or warning, but in the exported .json files several system fields were missing (not exported).

My workaround:

  • Instead of exporting from Jira Task to DevOps Task, I configured it to export from Jira Task to DevOps Issue.
  • After export, replaced “Task” for “Issue” at the beginning of all .json-files, for those work items that should be Issue instead of Task (since I exported several different types, not all files was to be replaced).

from jira-azuredevops-migrator.

XVII avatar XVII commented on May 16, 2024

I tried using Issue instead of a custom work item type, but it still didn't export correctly. As soon as it's a custom type on either side, it seems to fail.

from jira-azuredevops-migrator.

kenjdavidson avatar kenjdavidson commented on May 16, 2024

I ran into this issue as well, attempting to convert Jira BUG to DevOps ISSUE and found that the main problem stems from the WorkItemType (enum I guess) only containing a limited number of options, instead of actually being built from the configuration TypeMap.

JiraExport.JiraMapper line 377 - The mappingPerWiType is being built statically with no reference to Issue, therefore if Bug is Mapped to issue, it's not finding a resulting field map and therefore not doing any conversion.

var mappingPerWiType = new Dictionary<string, FieldMapping<JiraRevision>>
    {
        { WorkItemType.Bug, MergeMapping(commonFields, bugFields) },
        { WorkItemType.ProductBacklogItem, MergeMapping(commonFields, pbiFields) },
        { WorkItemType.Task, MergeMapping(commonFields, taskFields) },
        { WorkItemType.Feature, MergeMapping(commonFields, featureFields) },
        { WorkItemType.Epic, MergeMapping(commonFields, epicFields) },
        { WorkItemType.Requirement, MergeMapping(commonFields, requirementFields) },
        { WorkItemType.UserStory, MergeMapping(commonFields, userStoryFields) }
    };

Line 234 is failing:

if (type != null && **_fieldMappingsPerType.TryGetValue(type, out var mapping)**)

Working under the assumption that we only care about Targets, which in my mind is a valid assumption since we're going to DevOps types. I've made the following change to the InitializeFieldMappings method:

  • create only those FieldMappings for Target types
  • place FieldMappings into either Common or the appropriately named key
  • For each TargetType merge field mappings with commonFields.

My C# is pretty terrible but I can submit a PR if you see fit. With my change I'm getting decent conversions from:

Bugs to issues.
Improvements to improvements.

Those are the only two custom mappings we have.

from jira-azuredevops-migrator.

MOlausson avatar MOlausson commented on May 16, 2024

@kenjdavidson thanks for your feedback. Happy to review your code if you want to submit a PR.

from jira-azuredevops-migrator.

kmuthukumar-rp avatar kmuthukumar-rp commented on May 16, 2024

@MOlausson Any update on this issue. I am exporting Spike and Defect from Jira and mapping to same on ADO side. But the jira export json files does not have any fields or values in it and hence they are empty when imported into ADO. Doing the workaround that @jonada mentioned will be too much as there are at least 500 jira spikes and defects exported. I have the latest release of the tool. Is there any other workaround or fix for it now or when can we expect it. Appreciate it a lot. Thank you.

from jira-azuredevops-migrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.