Skip to content

Commit a6d96db

Browse files
#243 propertyValue added to setUserProperty method of UserProperties API (#244)
1 parent 379e876 commit a6d96db

File tree

7 files changed

+190
-197
lines changed

7 files changed

+190
-197
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Jira.js changelog
22

3+
### 2.15.16
4+
5+
- Version 2, 3:
6+
- `propertyValue` added to `setUserProperty` method of `UserProperties` API. Thanks to [lihongyin](https://github.com/hongyin163) for issue report.
7+
38
### 2.15.15
49

510
- Version 2, 3:

package-lock.json

Lines changed: 158 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "2.15.15",
3+
"version": "2.15.16",
44
"description": "jira.js is a powerful Node.JS/Browser module that allows you to interact with the Jira API very easily",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",
@@ -53,23 +53,23 @@
5353
"devDependencies": {
5454
"@swc-node/register": "^1.5.4",
5555
"@types/express": "^4.17.15",
56-
"@types/node": "^18.11.15",
56+
"@types/node": "^18.11.17",
5757
"@types/oauth": "^0.9.1",
5858
"@types/sinon": "^10.0.13",
59-
"@typescript-eslint/eslint-plugin": "^5.46.1",
60-
"@typescript-eslint/parser": "^5.46.1",
59+
"@typescript-eslint/eslint-plugin": "^5.47.0",
60+
"@typescript-eslint/parser": "^5.47.0",
6161
"ava": "^5.1.0",
6262
"dotenv": "^16.0.3",
63-
"eslint": "^8.29.0",
63+
"eslint": "^8.30.0",
6464
"eslint-config-airbnb": "^19.0.4",
6565
"eslint-config-airbnb-typescript": "^17.0.0",
6666
"eslint-import-resolver-typescript": "^3.5.2",
6767
"eslint-plugin-import": "^2.26.0",
6868
"eslint-plugin-sort-exports": "^0.8.0",
6969
"prettier": "^2.8.1",
7070
"prettier-plugin-jsdoc": "^0.4.2",
71-
"sinon": "^15.0.0",
72-
"typedoc": "^0.23.22",
71+
"sinon": "^15.0.1",
72+
"typedoc": "^0.23.23",
7373
"typedoc-plugin-extras": "^2.3.1",
7474
"typescript": "^4.9.4"
7575
},

src/version2/parameters/setUserProperty.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ export interface SetUserProperty {
55
*/
66
accountId?: string;
77
/**
8-
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
9-
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
10-
* for details.
8+
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
9+
* [deprecation
10+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
11+
* for details.
1112
*/
1213
userKey?: string;
1314
/**
14-
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
15-
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
16-
* for details.
15+
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
16+
* [deprecation
17+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
18+
* for details.
1719
*/
1820
username?: string;
1921
/** The key of the user's property. The maximum length is 255 characters. */
2022
propertyKey: string;
23+
propertyValue: any;
2124
}

src/version2/userProperties.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class UserProperties {
141141
userKey: parameters.userKey,
142142
username: parameters.username,
143143
},
144+
data: parameters.propertyValue,
144145
};
145146

146147
return this.client.sendRequest(config, callback);

src/version3/parameters/setUserProperty.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ export interface SetUserProperty {
55
*/
66
accountId?: string;
77
/**
8-
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
9-
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
10-
* for details.
8+
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
9+
* [deprecation
10+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
11+
* for details.
1112
*/
1213
userKey?: string;
1314
/**
14-
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
15-
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
16-
* for details.
15+
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
16+
* [deprecation
17+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
18+
* for details.
1719
*/
1820
username?: string;
1921
/** The key of the user's property. The maximum length is 255 characters. */
2022
propertyKey: string;
23+
propertyValue: any;
2124
}

src/version3/userProperties.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class UserProperties {
141141
userKey: parameters.userKey,
142142
username: parameters.username,
143143
},
144+
data: parameters.propertyValue,
144145
};
145146

146147
return this.client.sendRequest(config, callback);

0 commit comments

Comments
 (0)