Coder Social home page Coder Social logo

For some custom fields if the value was made blank in JIRA then it shows the previous revision in ADO about jira-azuredevops-migrator HOT 13 CLOSED

shweta22992 avatar shweta22992 commented on June 12, 2024
For some custom fields if the value was made blank in JIRA then it shows the previous revision in ADO

from jira-azuredevops-migrator.

Comments (13)

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024 1

PR merged! Thanks for the nice contribution :)

from jira-azuredevops-migrator.

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024

Wondering if this is maybe related to the MapTags mapper. I will try to replicate the scenario where the tags are unset.

What type is the field "Resolution Version(s)"? Is it a built-in or custom field?

from jira-azuredevops-migrator.

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024

Exporting an issue where the tags have been removed works fine:

image

@shweta22992 Maybe the issue comes from using the MapTags mapper for another field than Labels. Do you have a particular reason for using it for the Resolution Version(s) field?

from jira-azuredevops-migrator.

shweta22992 avatar shweta22992 commented on June 12, 2024

@Alexander-Hjelm it may be taking None as a value, when I check the history I get it like below -
image

"Resolution Version(s)" is a custom field we are using.
MapTags I am using as we run some custom code on that field and we want that to be delimited by some proper character that can be checked, initially it was coming space separated, so by MapTags it made it semicolon separated

from jira-azuredevops-migrator.

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024

@shweta22992 Why not just use MapArray instead?

from jira-azuredevops-migrator.

shweta22992 avatar shweta22992 commented on June 12, 2024

I was initially using MapArray but that was giving space delimited which we think may not be a robust option to go with for processing later.
Also I tried removing the MapTags mapper and still it was giving me the issue.

from jira-azuredevops-migrator.

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024

That shouldn't be possible. The MapArray mapper will take the value, split by comma and delimit the result by semicolon. You can refer to the source code here: https://github.com/solidify/jira-azuredevops-migrator/blob/master/src/WorkItemMigrator/JiraExport/RevisionUtils/FieldMapperUtils.cs#L149

from jira-azuredevops-migrator.

shweta22992 avatar shweta22992 commented on June 12, 2024

@Alexander-Hjelm I will take a look at this and again try to change, but if you can suggest something for the data issue after getting blank, as that is the more problematic thing for us currently

from jira-azuredevops-migrator.

shweta22992 avatar shweta22992 commented on June 12, 2024

@Alexander-Hjelm I have raised a PR for this
shweta22992#1
do let me know if this looks fine or any suggestions you have

from jira-azuredevops-migrator.

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024

@shweta22992 Ah! That could indeed be an issue. My bad. Thanks for sniffing this one out.

I think a safer way would be to store (value || "") in an interim variable, so that we don't accidentally edit something outside of the current block.

I will create a fix for this asap.

from jira-azuredevops-migrator.

Alexander-Hjelm avatar Alexander-Hjelm commented on June 12, 2024

@shweta22992 Nevermind, upon closer inspection I think your PR looks good enough as it is.

It seems like you have raised a PR to the main line of your own fork. I'm not sure if this was on purpose or not?

If you want credit for you fix, please edit the PR so that it merges into the main repo! Let me know otherwise and I'll apply the fix.

from jira-azuredevops-migrator.

shweta22992 avatar shweta22992 commented on June 12, 2024

@Alexander-Hjelm no that got by mistake I think. was truing to raise to the main repo. I will check where I have to make change for pointing it to main repo

from jira-azuredevops-migrator.

shweta22992 avatar shweta22992 commented on June 12, 2024

#940

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.