Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Subtask disappear from the active sprint when I change state.

Emmanuel J
December 1, 2020

Hello

I have this behavior only in one project.

I try to investigate and after a disappearance of the subtask in the board 

(if I open the parent task, the subtask is clearly visible. All status are mapped in the board ) 

Screenshot 2020-12-01 at 23.28.34.pngScreenshot 2020-12-01 at 23.28.29.png

I do this 2 jql queries

Screenshot 2020-12-01 at 22.55.23.pngScreenshot 2020-12-01 at 22.55.03.png

If I filter with the current sprint, one subtask disappear of the result....
it seems that the displayed value is not the real value.

To fix this behaviour I should change the sprint of the parent task to another sprint  save and select the old value and save again.

Has anyone ever had this kind of problem before?

 

Thank you

 

 

 

3 answers

0 votes
Mint meail
Contributor
October 1, 2012

Not entirely JSON-RPC, but I was able to create new issues by sending some JSON code as a HTTP POST request:

Request to: http://my_jira_machine:7991/rest/api/2/issue/

An HTTP Authorization header was added with authentication details of an existing Jira user

HTTP ContentType header set to : "application/json"

Data, e.g. something as straightforward as:

'{ "fields": { "project": { "key": "' + ProjectCode + '" }, "summary": "' + Summary + '", "description": "' + Description + '", "issuetype": { "name": "Bug" } } }'

This was not from Javascript, but I guess it would be possible to do this using e.g. JQuery:

http://stackoverflow.com/questions/5570747/jquery-posting-json

http://api.jquery.com/jQuery.post/

Hope this helps! :)

Fresh Grad
October 1, 2012

Thanks Ethan. But when I execute it against my local JIRA instance, 'http://localhost:8081/rest/api/2/issue/' to check the availability, I am getting the following error

Unauthorized (401)

Encountered a 401 - Unauthorized error while loading this page.

Mint meail
Contributor
October 1, 2012

The fact that you see a 401 means that at least there apparently is a site/API there to call.. an improvement over the 404 ;)

Are you sure that you are sending the correct authentication data?

My example works from Flash, where I added the headers in the following way:

// Authentication
var encoder:Base64Encoder = new Base64Encoder();
encoder.encode("username:password");
http.headers["Authorization"] = "Basic " + encoder.toString();

From Javascript you can do similar things. See for example:

http://stackoverflow.com/questions/5507234/how-to-use-basic-auth-and-jquery-and-ajax


Fresh Grad
October 5, 2012

Thanks. Also I would like to add an attachment(a word doc with requests) to the createISSUE call which I am sending to my JIRA local instance. How should I handle that?

0 votes
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 27, 2012

It is hard to tell what your requirement is but createIssue can be used for automation needs.

Fresh Grad
October 1, 2012

Yes, I am planning to invoke createIssue API remotely where one of the need is for automation.

0 votes
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 27, 2012

Hi, which version of JIRA are you using? If REST/JSON to create issues you need JIRA 5.x. Refer to http://docs.atlassian.com/jira/REST/latest/ for the documentation.

Fresh Grad
September 27, 2012

I am using JIRA 5.1.4

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events