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

AcceptanceCriteria field breaks images #888

Closed
diegoq opened this issue Oct 16, 2023 · 13 comments · Fixed by #890
Closed

AcceptanceCriteria field breaks images #888

diegoq opened this issue Oct 16, 2023 · 13 comments · Fixed by #890
Assignees
Labels

Comments

@diegoq
Copy link

diegoq commented Oct 16, 2023

When I migrate field description in jira and map the target field Microsoft.Common.AcceptanceCriteria.

The images does not show correctly. For example.

image

This is how jira shows it.

image

@Alexander-Hjelm
Copy link
Collaborator

FYI the reference name for the field is "Microsoft.VSTS.Common.AcceptanceCriteria".

Can you share your config.json file?

@Alexander-Hjelm
Copy link
Collaborator

Potentially related to #851?

@diegoq
Copy link
Author

diegoq commented Oct 17, 2023

Sure,

That's my config file.
{
"source-project": "COE SOFTWARE",
"target-project": "AMS SES",
"query": ""Epic Link"=SW-57991 and issue in(SW-59066, SW-58880) ORDER BY rank",
"using-jira-cloud": true,
"workspace": "C:\Temp\JiraExport\",
"epic-link-field": "Epic Link",
"sprint-field": "Iteracion",
"download-options": 7,
"batch-size": 20,
"log-level": "Debug",
"attachment-folder": "Attachments",
"user-mapping-file": "users.txt",
"base-area-path": "AMS SES",
"base-iteration-path": "AMS SES",
"ignore-failed-links": true,
"include-link-comments": false,
"include-jira-css-styles":false,
"process-template": "Custom-agile",
"link-map": {
"link": [
{
"source": "Epic",
"target": "System.LinkTypes.Hierarchy-Reverse"
},
{
"source": "Parent",
"target": "System.LinkTypes.Hierarchy-Reverse"
},
{
"source": "Relates",
"target": "System.LinkTypes.Related"
},
{
"source": "Duplicate",
"target": "System.LinkTypes.Duplicate-Forward"
}
]
},
"type-map":{
"type": [
{
"source": "Feature",
"target": "Feature"
},
{
"source": "Epic",
"target": "Epic"
},
{
"source": "Story",
"target": "User Story"
},
{
"source": "Bug",
"target": "Bug"
},
{
"source": "Task",
"target": "Task"
},
{
"source": "Sub-task",
"target": "Task"
}
]
},
"field-map": {
"field": [
{
"source": "summary",
"target": "System.Title",
"mapper": "MapTitle"
},
{
"source": "assignee",
"target": "System.AssignedTo",
"mapper": "MapUser"
},
{
"source": "description",
"target": "Microsoft.VSTS.Common.AcceptanceCriteria",
"mapper":"MapRendered"
},
{
"source": "priority",
"target": "Microsoft.VSTS.Common.Priority",
"mapping": {
"values": [
{
"source": "Blocker",
"target": "1"
},
{
"source": "Critical",
"target": "1"
},
{
"source": "Highest",
"target": "1"
},
{
"source": "Major",
"target": "2"
},
{
"source": "High",
"target": "2"
},
{
"source": "Medium",
"target": "3"
},
{
"source": "Low",
"target": "3"
},
{
"source": "Lowest",
"target": "4"
},
{
"source": "Minor",
"target": "4"
},
{
"source": "Trivial",
"target": "4"
}
]
}
},
{
"source": "Sprint",
"source-type": "name",
"target": "System.IterationPath",
"mapper": "MapSprint"
},
{
"source": "labels",
"target": "System.Tags",
"mapper": "MapTags"
},
{
"source": "comment",
"target": "System.History",
"mapper":"MapRendered"
},
{
"source": "status",
"target": "System.State",
"for": "Task",
"mapping": {
"values": [
{
"source": "To Do",
"target": "To Do"
},
{
"source": "Done",
"target": "Done"
},
{
"source": "In Progress",
"target": "In Progress"
}
]
}
},
{
"source": "status",
"target": "System.State",
"for": "User Story, Epic",
"mapping": {
"values": [
{
"source": "Parking Lot",
"target": "Backlog"
},
{
"source": "New",
"target": "Backlog"
},
{
"source": "Pending Grooming",
"target": "Requeriment"
},
{
"source": "Ready",
"target": "Requeriment"
},
{
"source": "Ready for DEV",
"target": "Requeriment"
},
{
"source": "Development",
"target": "Active"
},
{
"source": "Build Installed",
"target": "Active"
},
{
"source": "Certification",
"target": "Active"
},
{
"source": "Done",
"target": "Done"
},
{
"source": "Approved",
"target": "Done"
},
{
"source": "Closed",
"target": "Closed"
},
]
}
},
{
"source": "status",
"target": "System.State",
"for": "Feature",
"mapping": {
"values": [
{
"source": "To Do",
"target": "New"
},
{
"source": "Done",
"target": "Done"
},
{
"source": "In Progress",
"target": "In Progress"
}
]
}
},
{
"source": "Story Points",
"source-type": "name",
"target": "Microsoft.VSTS.Scheduling.Effort",
"not-for": "Task"
},
{
"source": "remainingEstimate",
"target": "Microsoft.VSTS.Scheduling.RemainingWork",
"for": "Bug,Task"
},
{
"source": "description",
"target": "Microsoft.VSTS.TCM.ReproSteps",
"for": "Bug"
}
]
}
}

@diegoq
Copy link
Author

diegoq commented Oct 17, 2023

In addition if I use the description field the images don't break.

@Alexander-Hjelm
Copy link
Collaborator

Looks like the attachment path correction is only implemented for Description, Repro Steps and Comments as of today. Let me create a fix and upload a build for you to try out @diegoq. I will get back to you with a build soon!

@Alexander-Hjelm
Copy link
Collaborator

Debug.zip
@diegoq Try this build and let me know the results!

@diegoq
Copy link
Author

diegoq commented Oct 17, 2023

@Alexander-Hjelm Debug zip doesn't have the wi-import exe.

@Alexander-Hjelm
Copy link
Collaborator

Debug.zip

You are correct, use this one

@diegoq
Copy link
Author

diegoq commented Oct 17, 2023

Hi @Alexander-Hjelm, now the jira-export is missing.

@Alexander-Hjelm
Copy link
Collaborator

Use both of the above zips! One contains the exporter and one the importer

@diegoq
Copy link
Author

diegoq commented Oct 18, 2023

Ok Let me do it

@diegoq
Copy link
Author

diegoq commented Oct 18, 2023

@Alexander-Hjelm yes Those zips work! so what's the next step?
image

@Alexander-Hjelm
Copy link
Collaborator

Perfect! :)

The bundles I sent you are based on the main line, so you already have the latest version of the tool. Continue using that until we have released the next version with these changes incorporated.

Merging the PR will close the issue. Feel free to reopen it and tag me if the problem persists!

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

Successfully merging a pull request may close this issue.

2 participants