MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API
https://mrrefactoring.github.io/jira.js/
MIT License
366 stars 49 forks source link

Unable to pass specific account ID when adding Watcher to Issue #189

Closed knor-el-snor closed 2 years ago

knor-el-snor commented 2 years ago

The only functionality in jira.js to add a watcher to an issue is by using the current user. Their API does however offer the functionality to pass along an optional accountID to assign someone else as watched based on their Jira ID. This is a crucial functionality for my usage as our API needs to assigns specific users to issues rather than the currently authenticated one.

knor-el-snor commented 2 years ago

I've created a PR that fixes the issue, and manually tested it works. See https://github.com/MrRefactoring/jira.js/pull/188