Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

/rest/auth/1/session

方法

POST

参数

...

Code Block
languagetext
titleJSON
linenumberstrue
collapsetrue
{
    "username": "admin",
    "password": "admin"
}
类型说明
username
用户的账户
password
对应账户的密码

结果

Code Block
languagetext
linenumberstrue
collapsetrue
{
  "session": {
    "name": "JSESSIONID",
    "value": "51A4730040DD0663E633998751CEE13E"
  },
  "loginInfo": {
    "failedLoginCount": 2,
    "loginCount": 2727,
    "lastFailedLoginTime": "2018-11-26T15:49:06.501+0800",
    "previousLoginTime": "2018-12-03T20:59:36.713+0800"
  }
}

说明

JSESSIONID

说明
session.nameJSESSIONID
name
固定值
自定义名称;不会统一type

自定义字段的类型,显示到界面上的注意,不同的语言版本可能会不致,会根据用户当前后语言决定;

通常,我们会直接拿typeKey来进行比例,具体可参见:

searcherKey
在CQL中搜索中使用的名称
self
url

进一步查询当前此问题类型调用URL

注意在部分版本中中,此项的URL并不能用

numericId
数字

自定义字段的ID值,为数字;它是customfield_XXX中的XXX部分

isLocke
boolean是否被锁定;即系统中只能管理它被配置的界面,不能进行其它的如必选 ,修改名称等操作
isManaged
boolean是否被管理,即只有一定的角色的人(系统管理员,JIRA管理员)才能进行必选,修改名称等操作
isAllProjects
boolean字段应用到项目和问题类型的上下问情况
projectsCount
数字被应用到项目中的个数
screensCount
数字被应用到界面中的个数
value
注意,不同的语言版本可能会不致,会根据用户当前后语言决定
,
"type": "Text Field (single line)",
"searcherKey": "GIT新分支名称",
"self": "http://jira.com/rest/api/2/customFields/customfield_10603",
"numericId": 10603,
"isLocked": false,
"isManaged": false,
"isAllProjects": true,
"projectsCount": 0,
"screensCount": 1
字串根据用户会话生的值,与web.html中的jsessionid一致
loginInfo
用户登录的情况信息