Skip to content

Conversation

danhellem
Copy link
Contributor

@danhellem danhellem commented Jul 14, 2025

Updated create_work_item to accept a format param so that you can set large text fields to use markdown. By default it is HTML. Also note, there is not good way on create to know if the field is a large text field or not. So it is going to assume the LLM knows what you ared doing based on your prompt. As a secondary check, we are looking at the value and if it is greater than 50 characters, it is safer to assume it is a large text field. Worse case, the opp will fail if you try and set a field to markdown that is not large text.

Updated update_work_items_batch as well to take format

GitHub issue number #218 #264

Associated Risks

Should be fine, no risks

PR Checklist

  • I have read the contribution guidelines
  • I have read the code of conduct guidelines
  • Title of the pull request is clear and informative.
  • 👌 Code hygiene
  • 🔭 Telemetry added, updated, or N/A
  • 📄 Documentation added, updated, or N/A
  • 🛡️ Automated tests added, or N/A

🧪 How did you test it?

updated tests and ran thru manual tests

@danhellem danhellem requested a review from a team as a code owner July 14, 2025 16:53
Copy link

github-actions bot commented Jul 14, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@danhellem danhellem self-assigned this Jul 14, 2025
@danhellem danhellem added the Needs Review 👓 needs review by the product team label Jul 14, 2025
Copy link
Contributor

@polatengin polatengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@danhellem danhellem changed the title up[dated create_work_item to support markdown format in large text fields updated create_work_item to support markdown format in large text fields Jul 14, 2025
@danhellem danhellem linked an issue Jul 14, 2025 that may be closed by this pull request
@danhellem danhellem merged commit 29e1674 into main Jul 15, 2025
7 checks passed
@danhellem danhellem deleted the users/danhellem/create-workitem-with-markdown-1 branch August 13, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review 👓 needs review by the product team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add how to use markdown with create and updates in docs Work Item Update and Create should include option to set large text fields to Markdown

3 participants