jira-plugin

Error in curl when authenticating into JIRA

隐身守侯 提交于 2021-02-07 09:13:12
问题 curl -H "Content-Type: application/json; charset=UTF-8" -d '{"username":"admin","password":"admin"}' http://localhost:2990/jira/rest/auth/1/session I used the above query in DOS and I always get the following error : {"errorMessages":["Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@1fd9611; line: 1, column: 2]"]} I tried many permutations and combinations ..

Integrate Optaplanner in Jira plugin

那年仲夏 提交于 2020-01-06 08:06:08
问题 I'm trying to integrate optaplanner into my jira plugin. I first want to get optaplanner running, using the following solverConfig.xml <?xml version="1.0" encoding="UTF-8"?> <solver> <solutionClass>com.mycompany.planner.domain.VersionPlanning</solutionClass> <entityClass>com.mycompany.planner.domain.PlanningIssue</entityClass> <scoreDirectorFactory> <scoreDrl>planner/solver/scoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <secondsSpentLimit>290</secondsSpentLimit> </termination

How to get a user by email in a JIRA plugin

非 Y 不嫁゛ 提交于 2020-01-06 03:20:10
问题 When writing a plugin for JIRA, how do you get a user, or just their username, given their email address? It seems that you're supposed to use the findUsersByEmail method in the UserSearchService interface https://docs.atlassian.com/jira/7.0.2/com/atlassian/jira/bc/user/search/UserSearchService.html But how do you get an instance of this class? Or a singleton of it? 回答1: The component system in JIRA is built on Spring. Therefore, if the class you're working on is autowired (e.g. plugin module

How to change Custom field date picker to appear as Month-Year picker

时光毁灭记忆、已成空白 提交于 2020-01-05 10:24:02
问题 How to change default datepicker template to appear as Month-Year view only . below is the template file for detault date picker custom field: ##disable_html_escaping() TODO REENABLE $!{auiparams.put("controlHeaderClass", "aui-field-datepicker")} #customControlHeader ($action $customField.id $customField.name $fieldLayoutItem.required $displayParameters $auiparams) ## Show the use checkbox field to use the current date/time when configuring the field in the admin section. #if (

Jira Soap with a Php

試著忘記壹切 提交于 2019-12-30 11:34:09
问题 I have seen little to know instruction on using php to develop a client website to make remote calls to JiRA. Currently I'm trying to make a soap client using JSP/Java to connect to a local jira instance. I would like to create and search issues that is all. We are currently having some problems using Maven2 and getting all the files we need from the repository since we are behind a major firewall(yes I've used the proxy). I have a lot of experience with PHP and would like to know if using

Replacing deprecated AbstractEditHandlerDetailsWebAction in Atlassian JIRA plugin for 7.X

混江龙づ霸主 提交于 2019-12-25 16:48:37
问题 I'm following Atlassian's Tutorial - Custom message (mail) handler for JIRA I've hit a brick wall with the second to last step: 3) Create a new file named EditDemoHandlerDetailsWebAction.java in src/main/java/com/example/plugins/tutorial/jira/mailhandlerdemo directory, and give it the following contents: package com.example.plugins.tutorial.jira.mailhandlerdemo; import com.atlassian.configurable.ObjectConfigurationException; import com.atlassian.jira.plugins.mail.webwork

Replacing deprecated AbstractEditHandlerDetailsWebAction in Atlassian JIRA plugin for 7.X

旧城冷巷雨未停 提交于 2019-12-25 16:48:21
问题 I'm following Atlassian's Tutorial - Custom message (mail) handler for JIRA I've hit a brick wall with the second to last step: 3) Create a new file named EditDemoHandlerDetailsWebAction.java in src/main/java/com/example/plugins/tutorial/jira/mailhandlerdemo directory, and give it the following contents: package com.example.plugins.tutorial.jira.mailhandlerdemo; import com.atlassian.configurable.ObjectConfigurationException; import com.atlassian.jira.plugins.mail.webwork

Jira Gadget: Simple call to REST resource doesn't work

我与影子孤独终老i 提交于 2019-12-25 05:36:15
问题 Im trying to write a gadget inside a jira plugin and I've encountered some problems even with a very simple one. Currently I'm trying to get a response from a simple java class i wrote. Following code is located in my gadget.xml: Hello Gadget<br /> #requireResource("com.atlassian.gadgets.publisher:ajs-gadgets") #requireResource("com.tngtech.gadgets.jira-complain-gadget-plugin:web-resources") #includeResources() #oauth <script type="text/javascript">(function () { var gadget = AJS.Gadget({

Automating custom field value change in JIRA

我只是一个虾纸丫 提交于 2019-12-25 01:34:46
问题 I have a custom field called " Detailed Status " in the issue page. After an issue is verified by testers, they will change the value of this field to " Ready for Deployment ". After we deploy the latest code to the server, this should be changed to " Verified after Deployment ". At the moment, after every deployment there will be at least 10-15 issues which will require a developer to manually go to each issue and change the value of the custom field to " Verified After Deployment " Is there

How do I find Synchronizer External URL for TFS4JIRA on visualstudio.com

僤鯓⒐⒋嵵緔 提交于 2019-12-24 12:11:02
问题 I need to configure TFS4JIRA with visualstudio.com but On TFS4JIRA plugins in JIRA asking 'Synchronizer External URL' and I tried to find URL on visualstudio.com but didn't get it. 回答1: 'Synchronizer External URL' is the address of Synchronizer application that should be installed on your Windows machine, it has nothing to do with xxx.visualstudio.com. Remember that Synchronizer address should be accessible from internet, or more precise - from http://tfs4jira-ondemand.spartez.com (please