jira

upload files in JIRA via REST API

这一生的挚爱 提交于 2020-01-25 12:25:18
问题 We all pretty well know that the request and response format for JIRA REST API are in the form of JSON. I successfully retrieved the attachment details of the uploaded files using the url of type http://example.com:8080/jira/rest/api/2/attachment . I now need to work on file upload on to JIRA using the same REST API. I own a java client and its stated tat I need to post multipart input using MultiPartEntity . I do not know how to submit a header of X-Atlassian-Token: nocheck with the JSON

Getting a blank file when accessing JIRA on SSL

心不动则不痛 提交于 2020-01-25 04:17:09
问题 I'm stuck on a SSL problem with JIRA. I've followed the instructions to setup Jira+SSL on Ubuntu but am getting a blank file when accessing http://domain.com:8443/ In the blank file I can see these 1503 0300 0202 0a I'm not sure what I can do the catalina logs don't report any problems. 回答1: How to add SSL Certificate to secure JIRA installation: Assumptions: JIRA is running on port 8080 or some other open port, on Linux Machine JIRA is using tomcat server and is indepedent from Apache HTTP

Jira的终极应用--Http升级为Https

心已入冬 提交于 2020-01-21 22:26:24
需求背景: 由于对网络安全的监督和管控越来越严格,chrome等浏览器强制要求https看样子也是大势所趋,所以我们遇到了服务http升级为https协议的需求。我们企业对外的服务早已经是https协议了,但是内部一些工具的改造还在起步阶段,本篇的改造策略只是拿jira和confluence来举个实战例子,其思想和步骤可以试用于其他场景。 http存在的漏洞和https是如何解决这些安全问题的可以详见我前面的一篇博文《https://blog.csdn.net/yejingtao703/article/details/78723276》,这里不再详细论述。 详细步骤: 1 准备证书和私钥 Openssl命令创建出key和csr,其中csr提供给认证机构换取crt证书文件,key留给自己秘密保管。 为了避免SHA-1,确保更强的安全性,我们还会采取Diffie-Hellman密钥交换。 cd /etc/ssl/certs openssl dhparam -out dhparam.pem 2048 # 如果你的机器性能足够强大,可以用 4096 位 所生成的文件也许要妥善保管,nginx配置时会用到。 2 https转http 总体分为两大解决方案:服务端直接提供https服务和通过转换层来实现,前者我们不推荐,因为这个需要改造代码,后者也有多种实现方式,我所知的就有3种。 本地代理

Docker 部署Jira8.1.0

北城以北 提交于 2020-01-18 01:29:44
Jira与Confluence一样,都需要用到独立的数据库,对于数据库的安装我们不做介绍,主要介绍如何用Docker部署Jira以及对Jira进行破解的操作。 1、数据库准备 关于数据库官方文档说明:https://confluence.atlassian.com/adminjiraserver/connecting-jira-applications-to-mysql-5-7-966063305.html 1 2 3 4 ## 创建数据库及授权 CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; GRANT ALL on jiradb.* TO 'jira' @ '%' IDENTIFIED BY 'Jira#123' ; flush privileges ; 注意:我使用的数据库版本为mysql5.7,请认真阅读官方文档中给出的不同版本不同的mysql授权命令,以及对应的参数修改,否则下面安装时会失败。 2、Jira安装 1)获取镜像 官方镜像地址: cptactionhank/atlassian-jira-software:8.1.0 [root@vanje-dev01 ~]# docker pull cptactionhank/atlassian-jira-software:8.1.0 2)

git server side hooks

自古美人都是妖i 提交于 2020-01-17 00:59:29
问题 I am running into a problem when running the follow python script on the server looking for commit information for the push making sure it follows a particular syntax, I am unable to get input from the user which is why the username and password are hard coded. I am now also unable to get the list of commit message that occurred before this particular push. #!/usr/bin/python import SOAPpy import getpass import datetime import sys import re import logging import os def login(x,y): try: auth =

Authentication Error 401 when using node-jira module

穿精又带淫゛_ 提交于 2020-01-17 00:40:31
问题 I am trying to read an issue using a https://github.com/steves/node-jira , however I am getting an an error 401: Unable to connect to JIRA during findIssueStatus. Here is the code that I am using the code bellow on localhost:8433 var jiraApi = require('jira').JiraApi; var config = { "username": "name@email.com", "password": "password", "port": 443, "host": "company.atlassian.net" } var issueNumber = "ABC-1"; var jira = new jiraApi('https', config.host, config.port, config.username, config

Docker实践--搭建JIRA平台

久未见 提交于 2020-01-15 06:24:16
背景 :项目需要选择不同测试平台,筛选一个最佳平台 现状 :一台机器安装多套环境,虚拟机太繁琐 解决方案 :通过Docker模拟安装测环境 参考 :http://www.cnblogs.com/fithon/p/9391162.html 1.pull docker 镜像: jira:7.11.1(目前的最新版本) mysql:5.7 docker pull cptactionhank/atlassian-jira-software docker pull mysql:5.7 2.启动mysql docker实例 docker run --name atlassian-mysql --restart always -p 3306:3306 -v /opt/mysql_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD= 123456 - d mysql:5.7 #记得修改passwd 3.连接mysql docker run -it --link atlassian-mysql:mysql --rm mysql:5.7 sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT

jira安装

半腔热情 提交于 2020-01-14 02:08:35
环境: centos7.0 mysql5.7 (安装略) jdk:1.8.0_171( 安装略 ) 所用插件: atlassian-extras-3.2.jar (试用期破解版) mysql-connector-java-5.1.48.jar ( jira 连接 mysql 的驱动) atlassian-jira-software-8.6.1.tar.gz ( jira ) 步骤一 :建立名为 jira 的数据库,用户名也为 jira ,便于认别 root 登录 mysql, 创建用户 jira, 密码你随便( mysql5.7 有密码策略) GRANT ALL PRIVILEGES ON *.* TO 'jira'@'%' identified by '12345678'; CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin;( 需要使用 utf-8 字符集 ) 步骤二: 1. 上传 atlassian-jira-software-8.6.1.tar.gz 至 /opt 目录下 2.tar -zxvf atlassian-jira-software-8.6.1.tar.gz -C /usr/local/ 解压到 /usr/local 3. 切换到 /usr/local/ ,解压文件名字太长修改成 jira mv

How to specify version with git smart commits?

痴心易碎 提交于 2020-01-14 01:42:49
问题 I'm using BitBucket and Attlasian Jira. They are linked between each other so i can resolve an issues just with git comment: git commit -m "BUG-123 #resolve #comment My comment" My question is. Is it possible to specify fix version with smart commit feature? 回答1: According to the JIRA DVCS plugin API documentation, there are three commands you can use: #time #comment #<transition> There is no direct command to use to select the fix version, but you could likely set up a trigger or a hook in