PageSourceSearch

https://jira.nine.ch/includes/jira/common/meta.js

js nine.ch collected 2026-09-25 14:19:03 UTC 1,657 bytes, 55 lines download raw bytes

1define('jira/legacy/meta', ['require', 'exports'], function (require, exports) {
2  'use strict';
3
4  var Meta = require('jira/util/data/meta');
5  var deprecator = require('jira/deprecator');
6  var params = require('aui/params');
7
8  /**
9   * @return {Object} the currently logged-in user
10   * @deprecated use the {@amd jira/util/users} module instead.
11   */
12  exports.getLoggedInUser = function () {
13    return {
14      name: Meta.get('remote-user'),
15      fullName: Meta.get('remote-user-fullname')
16    };
17  };
18
19  /**
20   * @return {String} the Project key for the currently-viewed issue. Blank if the current page isn't for an issue or project.
21   * @deprecated Doesn't work.
22   */
23  exports.getProject = function () {
24    return params.projectKey;
25  };
26
27  /**
28   * @return {String} the key of the currently-viewed issue. Blank if the current page isn't for a viewed issue.
29   * @deprecated use the {@amd jira/issue} module instead.
30   */
31  exports.getIssueKey = function () {
32    return Meta.get('issue-key');
33  };
34  deprecator.prop(exports, 'getLoggedInUser', {
35    sinceVersion: '7.0',
36    removeInVersion: '8.0',
37    alternativeName: 'module:jira/util/users/logged-in-user'
38  });
39  deprecator.prop(exports, 'getProject', {
40    sinceVersion: '7.0',
41    removeInVersion: '8.0'
42  });
43  deprecator.prop(exports, 'getIssueKey', {
44    sinceVersion: '7.0',
45    removeInVersion: '8.0',
46    alternativeName: 'module:jira/issue'
47  });
48});
49
50/**
51 * JIRA.Meta represents meta-state about the current JIRA page - logged in user, etc.
52 *
53 * @deprecated add metadata to more appropriate business objects.
54 */
55AJS.namespace('JIRA.Meta', null, require('jira/legacy/meta'));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.