Coder Social home page Coder Social logo

Comments (26)

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

To reproduce the issue,

  1. Create a ticket in jira with following fields Client: Custom field Fix Version/s: System defined
    image

  2. Try exporting with above 2 fields populated

from jira-azuredevops-migrator.

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

See the FAQ for guidelines on how to map custom fields: https://github.com/solidify/jira-azuredevops-migrator/blob/master/docs/faq.md#3-how-to-map-custom-field

The Fixes Version field has the field ID "fixVersions" under the hood

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Field Id "fixVersions" did work for me. Thankyou!

For the other custom field its a drop down field so I have I tried using Map Array for this i.e
{
"source": "customfield_10205",
"target": "Custom.ClientCode",
"mapper": "MapArray"
},

In the exported logs it says "the specific field contains unparsable type Null, using text"

Please find the attached log below

from jira-azuredevops-migrator.

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

The ClientCode field in your Jira view looks suspiciously like the tag field. Could it maybe do the trick to use the mapper "MapTags"?

The debug message means that the field does not have a value on the first revision. This could be expected or not, depending on when in the changlog you modified the ClientCode field.

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Tried with the "MapTags" still no luck in getting this populated
{
"source": "customfield_10205",
"target": "Custom.ClientCode",
"mapper": "MapTags"
},

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Along with the ClientCode field I am experiencing issues with 2 other custom fields i.e SN Case# and SN Incident# for these 2 fields the values are getting exported correctly from Jira as you can see in the attached json. But on importing it to ADO it gets populated with random value "98654321" and even though in the config file the field is defined once it gives error saying

" Update to work item 28623 had two or more updates for field with reference name 'Custom.ServiceNow_Incident'. A field cannot be updated more than once in the same update.
[E][10:35:14] Work Item 28623 failed to save."

Attachments:

Solidify.docx

from jira-azuredevops-migrator.

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

Try to specify the full FieldReferenceName for all of your fields in the config?

e.g. ServiceNow_Incident becomes Custom.ServiceNow_Incident

Also here I can see that you have many cases of using the Display name of the target fields (ADO) instead of the FieldReferenceName. This might affect your experience with the tool negatively, although I cannot say exactly what the consequences will be:

      {
        "source": "customfield_16300",
        "target": "Impact Score",
        "mapper": "MapInteger"
      },
      {
        "source": "customfield_16301",
        "target": "Effort Score",
        "mapper": "MapInteger"
      },
      {
        "source": "fixVersions",
        "target": "Fix Version",
        "mapper": "MapString"
      },
      {
        "source": "customfield_16302",
        "target": "Priority Rank",
        "mapper": "MapInteger"
      },
      {
        "source": "Developer",
        "target": "Dev Assignee",
        "mapper": "MapUser"
      },
      {
        "source": "Assignee",
        "target": "Dev Assignee",
        "mapper": "MapUser"
      },

You can find some troubleshooting steps related to migrating custom fields here: https://github.com/solidify/jira-azuredevops-migrator/blob/master/docs/faq.md#troubleshooting-my-custom-field-is-not-migrated-correctlynot-migrated-at-all

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Thank you so much! I was able to get the ServiceNow_Incident fields populated. It was my mistake—I was looking at the wrong ADO process template. Our user story has this field defined with a different name compared to bugs. However, for the Client Code, I am still unable to figure out what’s going wrong. I would really appreciate it if you could help me with this.

I have tried specifying with the suggested Custom fields it's showing blank ' ' on exporting:
Attachments:
image
image

ADOClientField
image

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

To add to the above

When there is multiple clients it understands that and mapps " ; " where as when there is single client it shows ' '
image

from jira-azuredevops-migrator.

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

@advitakhadke24 Have you tried to map both by "name" and "id"? As mentioned here: https://github.com/solidify/jira-azuredevops-migrator/blob/master/docs/faq.md#3-how-to-map-custom-field

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

@Alexander-Hjelm Yes the first highlighted in the screenshot is mapped with "name" and the other is with "Id"
image

from jira-azuredevops-migrator.

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

source-type cannot have the value "Client", it must either be "name" or "id".

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Got it, I have tried with the source-type = Name since the values are like KI, AJ, AH

  {
    "source": "Client",
    "source-type": "Name",
    "target": "Custom.ClientCode"
  },
  
And just to be sure I have also tried with ID as well, still no luck!  
  
  {
    "source": "Client",
    "source-type": "id",
    "target": "Custom.ClientCode"
  },

from jira-azuredevops-migrator.

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

If using:

"source-type": "id",

Then the source should be the custom field key. Something like customfield_12345. You may need to use the REST API to retrieve this data.

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Can you please explain on how to achieve this? If you have any document which I can follow to identity this?
Thanks!

from jira-azuredevops-migrator.

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

The only document we have with known solutions is here: https://github.com/solidify/jira-azuredevops-migrator/blob/master/docs/faq.md#3-how-to-map-custom-field

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

I did some research and it looks like there are 2 ways to find they custom field in ADO through ADO web portal or via API. I have already looked through web portal by going to Process -> work item type(User Story , Bugs)->Select the Custom Field
looks like custom field key in Jira is displayed as "Field reference name" in ADO

image

from jira-azuredevops-migrator.

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

Hum... What type is the field Custom.ClientCode in Azure DevOps? Is it a picklist? If so, maybe the value you are trying to import is not among the selectable values?

The value will effectively be a string containing the elements separated by commas.

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

Yes the "Custom.ClientCode" in Azure DevOps is a picklist and it is present in the picklist group.
image
Also, field has option to typein if not available in picklist
image

Another thing to note, there is another field which is also a picklist "labels" this works fine with the Maptags
image

from jira-azuredevops-migrator.

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

@advitakhadke24 For experimentation purposes, what you happen if you were to create a new Test field in your target Work Item Type process model and map the ClientCode field to that? Does the full value come over then? Or does it not change the value at all?

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

I tried adding a new test client code field - with a single line text field
image

Tried with Mapstring & tag
{
"source": "customfield_10205",
"target": "Custom.TestClientCode",
"mapper": "MapString"
},

 {
    "source": "customfield_10205",
    "target": "Custom.TestClientCode",
    "mapper": "MapTags"
  },

It just gives blank on exporting itself
[D][13:42:10] Mapped value ' ' to field 'Custom.TestClientCode'.

from jira-azuredevops-migrator.

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

Try MapArray?

https://github.com/solidify/jira-azuredevops-migrator/blob/master/docs/config.md#mappers

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

I have already tried that, if you see the comment here #1004 (comment)

I gave another shot this morning with test as well as the orignal Client field but still it's the same ' '

  {
    "source": "customfield_10205",
    "target": "Custom.TestClientCode",
    "mapper": "MapArray"
  },

from jira-azuredevops-migrator.

advitakhadke24 avatar advitakhadke24 commented on June 27, 2024

@Alexander-Hjelm anything else I could try? We want this field migrated and thinking off getting Pro migrator tool...In case we do purchase ..will that be helpful to get this field populated?

from jira-azuredevops-migrator.

github-actions avatar github-actions commented on June 27, 2024

This issue is stale because it has been open for 25 days with no activity.

from jira-azuredevops-migrator.

github-actions avatar github-actions commented on June 27, 2024

This issue was closed because it has been inactive for 5 days since being marked as stale.

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.