jira

How to change transitions to a issue in ruby, using jira-ruby gem?

跟風遠走 提交于 2019-12-07 07:05:03
问题 I'm trying to access jira in ruby with the Jira-ruby gem (https://rubygems.org/gems/jira-ruby), but i can't find how to change the transitions. I can only change it using the REST-api? There is a Transition class (http://rubydoc.info/gems/jira-ruby/0.1.8/JIRA/Resource/Transition), but i don't know how to deal with it. 回答1: The REST API docs say that you POST to /issue/{issueIdOrKey}/transitions to transition an issue from one status to another. First fetch the available transitions for an

Creating jira issue via Rest c# httpClient

a 夏天 提交于 2019-12-07 06:58:10
问题 I have read one answer on atlassian https://answers.atlassian.com/questions/79902/using-httpclient-c-to-create-a-jira-issue-via-rest-generates-bad-request-response where one user created a JIRA issue by the following code. I adapted it but get an error by using a self-build class issue with ObjectContent Http.HttpContent content = new Http.ObjectContent<Issue>(data, jsonFormatter); The compiler wont accept it. Does anybody know why? public string CreateJiraIssue() { string data= @"{ ""fields"

Can reflection be used to instantiate an objects base class properties?

痴心易碎 提交于 2019-12-07 06:12:07
问题 Like this: public class remoteStatusCounts : RemoteStatus { public int statusCount; public remoteStatusCounts(RemoteStatus r) { Type t = r.GetType(); foreach (PropertyInfo p in t.GetProperties()) { this.property(p) = p.GetValue(); //example pseudocode } } } The example is a bit simple (it's from the Jira API - RemoteStatus has 4 properties), but imagine the base class had 30 properties. I don't want to manually set all those values, especially if my inherited class only has a couple of extra

Restricting Subversion commits if the Jira Issue key is Not in the commit message

霸气de小男生 提交于 2019-12-07 06:08:57
问题 I am using SVN-1.7.4 for revision control and atlassian JIRA as the issue tracker for my LAMP website. I want to restrict SVN commit if any of my team member commits without mentioning the Jira Issue key for the same. I am using JIRA standalone and have installed it on my server. Google search gave me Subversion Jira Plugin (https://studio.plugins.atlassian.com/wiki/display/SVN/Subversion+JIRA+plugin) but it can only help me out in tracking the commits that had a JIRA key, not in restricting

GET Values from a custom field via JIRA REST API

风流意气都作罢 提交于 2019-12-07 05:36:17
问题 I would like to GET all drop down options for a custom field. For system fields, I use the following URI: http://localhost:8080/rest/api/2/project/XXXX/components (for components, versons, etc. Basically system fields), so I tried the following for a custom field http://localhost:8080/rest/api/2/project/XXXX/customfield_10000 and got a 404 error. I'm not sure what I'm doing wrong as I've been googling for the past 19 hours. The best I search result I got was the following documentation: JIRA

Commit message hook on github

烂漫一生 提交于 2019-12-07 04:37:28
问题 I am trying to setup a pre-receive hook in github that I used to use on STASH. In STASH, I had a pre-receive hook that used to enforce "A custom commit message that should have a JIRA number included in it". Now, I am trying to understand what would be the best way to do something similar on github. If I split it up, it would be: Requiring a custom commit message. Every commit should include an existing JIRA. Enforce this on any pull request as well. Eg: TEST-1 Adding the first commit message

JIRA: On Sub Task creation, inherit custom fields from Parent

邮差的信 提交于 2019-12-07 04:30:59
问题 In JIRA, is there a way when a sub task is created, to have it inherit custom field values from the parent? For example, we have custom fields called "Epic" and "Feature". If the story has an "Epic" value of "Email" and the "Feature" value of "Stylesheets". When you click the "Create sub task", the sub task should automatically have "Epic" = "Email" and "Feature" = "Stylesheets". What ways have you done this in the past? Thanks 回答1: I do this two ways: Use the Create and Link plugin. You can

Jira and git: How to get all branches reflected?

半腔热情 提交于 2019-12-07 02:14:55
问题 Using a development infrastructure of git, Fisheye+Crucible, and Jira 4.2. Commits to Fisheye-registered repositories are reflected in Jira Projects and Tickets since we configured the mappings in Jira; however, only commits on the master branch seem to be reflected. In Crucible, other branches can be chosen to search for commits for reviews. How can I make all those branches visible in Jira? 回答1: Seems like it is a limitation of Git-Fisheye ( https://confluence.atlassian.com/display/FISHEYE

Creating a GitHub hook for when a pull requested is opened

心不动则不痛 提交于 2019-12-07 01:51:25
I'm trying to setup a GitHub hook which sends a POST to a url when a pull request is opened. This post should contain all the relevant details of the pull request, however I have added a url to the "Web-Hook URLS" on GitHub and tested that with request bin and found that it only sends a POST when I do git commit. Is it possible to get GitHub to send a POST when I open a new pull request? Thanks in advance! Resolved by using this gist : https://gist.github.com/bjhess/2726012 来源: https://stackoverflow.com/questions/15383790/creating-a-github-hook-for-when-a-pull-requested-is-opened

How to generate jwt token for JIRA API

僤鯓⒐⒋嵵緔 提交于 2019-12-06 12:59:25
I am trying to generate jwt token for authorizing the API. Firstly i can't find any token generator api from JIRA. After searching a lot, i found a java code to generate jwt token but it gives error while importing zephyr libraries. Error : org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script4.groovy: 18: unable to resolve class com.thed.zephyr.cloud.rest.ZFJCloudRestClient @ line 18, column 1. import com.thed.zephyr.cloud.rest.ZFJCloudRestClient; Java Code : https://github.com/zephyrdeveloper/zapi-cloud/blob/master/Samples/src/com/thed/zapi/cloud/sample