{ "id": "155548", "key": "AC-3333", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-22T19:51:49.000+0000", "created": "2016-03-08T09:48:14.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-22T20:18:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "h3. Steps to Reproduce\nPut classic code in 'Steps to Reproduce Field' (2. jira.png)\n\nh3. Actual Result\n1. If fields are filled and OK is pressed user gets Error message (2. error.png).\n2. 'Submit a Ticket' window is closed and everything in fields is lost.\n3. Ticket is not send.\n\nh3. Expected Result\n1. No Error.\n2. Better information what cause the error to avoid it.\n3. Saving progress (not loosing data from fields) and not closing 'Submit a Ticket' window.\n4. Sending a ticket.", "attachment": [ { "id": "58538", "filename": "2. error.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-08T09:48:16.000+0000", "size": 25143, "mimeType": "image/png" }, { "id": "58539", "filename": "2. jira.png", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-08T09:48:19.000+0000", "size": 43184, "mimeType": "image/png" }, { "id": "58549", "filename": "Screen Shot 2016-03-08 at 9.34.10 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-08T15:41:02.000+0000", "size": 77605, "mimeType": "image/png" }, { "id": "58548", "filename": "Screen Shot 2016-03-08 at 9.35.33 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-08T15:41:01.000+0000", "size": 34807, "mimeType": "image/png" }, { "id": "58547", "filename": "Screen Shot 2016-03-08 at 9.37.07 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-08T15:41:03.000+0000", "size": 131700, "mimeType": "image/png" }, { "id": "58546", "filename": "Screen Shot 2016-03-08 at 9.37.28 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-08T15:41:04.000+0000", "size": 190176, "mimeType": "image/png" } ], "flagged": false, "summary": "Adding code to Jira Submit a Ticket (Steps to Reproduce) cause an error", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "379199", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nI just tried to create JIRA ticket through Appcelerator studio with classic code. I was able to successfully submit the ticket. Please see the attachment. I also tried with Alloy code. Please provide the classic code that you are trying to submit. I will try again with your code. \r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-08T15:40:21.000+0000", "updated": "2016-03-08T15:42:27.000+0000" }, { "id": "379202", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nThanks for your attention. Code below:\r\n\r\n{code:javascript}\r\nvar filename = 'someImage.jpg';\r\n\r\nvar file = Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename);\r\n\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\n\tvar imageView = Ti.UI.createImageView({\r\n\t\ttop: 0,\r\n\t\twidth: '100%',\r\n\t\timage: file.nativePath\r\n\t});\r\n\t\r\n\tvar shareButton = Ti.UI.createView({\r\n\t\theight: 100,\r\n\t\twidth: 200,\r\n\t\tbackgroundColor: 'purple',\r\n\t\tbottom: 0,\r\n\t});\r\n\t\r\n\r\n\twindow.add(imageView);\r\n\twindow.add(shareButton); \r\n\r\n\r\n\tshareButton.addEventListener('click', function() {\r\n\t\talert('shareClick');\r\n\t\t\r\n\t\tvar shareIntent = Ti.Android.createIntent({\r\n\t action: Ti.Android.ACTION_SEND,\r\n\t type: \"image/jpeg\"\r\n });\r\n \r\n\t shareIntent.putExtra(Ti.Android.EXTRA_TITLE, 'title');\r\n\t shareIntent.putExtra(Ti.Android.EXTRA_TEXT, 'text');\r\n\t shareIntent.putExtraUri(Ti.Android.EXTRA_STREAM, file.nativePath);\r\n\t Ti.Android.currentActivity.startActivity(Ti.Android.createIntentChooser(shareIntent, 'share'));\r\n\t\t\r\n\t});\r\n\r\nwindow.open();\r\n{code}\r\n\r\nvar filename = 'someImage.jpg';\r\n\r\nvar file = Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename);\r\n\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\n\tvar imageView = Ti.UI.createImageView({\r\n\t\ttop: 0,\r\n\t\twidth: '100%',\r\n\t\timage: file.nativePath\r\n\t});\r\n\t\r\n\tvar shareButton = Ti.UI.createView({\r\n\t\theight: 100,\r\n\t\twidth: 200,\r\n\t\tbackgroundColor: 'purple',\r\n\t\tbottom: 0,\r\n\t});\r\n\t\r\n\r\n\twindow.add(imageView);\r\n\twindow.add(shareButton); \r\n\r\n\r\n\tshareButton.addEventListener('click', function() {\r\n\t\talert('shareClick');\r\n\t\t\r\n\t\tvar shareIntent = Ti.Android.createIntent({\r\n\t action: Ti.Android.ACTION_SEND,\r\n\t type: \"image/jpeg\"\r\n });\r\n \r\n\t shareIntent.putExtra(Ti.Android.EXTRA_TITLE, 'title');\r\n\t shareIntent.putExtra(Ti.Android.EXTRA_TEXT, 'text');\r\n\t shareIntent.putExtraUri(Ti.Android.EXTRA_STREAM, file.nativePath);\r\n\t Ti.Android.currentActivity.startActivity(Ti.Android.createIntentChooser(shareIntent, 'share'));\r\n\t\t\r\n\t});\r\n\r\nwindow.open();", "updateAuthor": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-08T16:00:06.000+0000", "updated": "2016-03-08T16:00:38.000+0000" }, { "id": "379205", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-08T16:04:35.000+0000", "updated": "2016-03-08T16:05:39.000+0000" }, { "id": "380426", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nI have tested with the project you referred. The issue I saw was when I just copy the code from the ticket and try to create a JIRA ticket in the studio and paste the ticket in the step to reproduce section I got the error http://postimg.org/image/euwck4r6b/.\r\n\r\nNow, If I first put the code in a js file in the studio and try formatting it according to the studio default format and then I again copy the code from there and try creating a JIRA ticket. This time, I don't have the error creating the ticket. And the ticket creates successfully.\r\n\r\nhttp://postimg.org/image/p0mvzcya7/ \r\nhttp://postimg.org/image/70w0wbh4x/. \r\n\r\nSo, My guess is the issue with unformatted code. This might a default requirement for this studio feature. Which shouldn't be a problem cause when submitting a ticket someone will already have a formatted code to submit. \r\n\r\nHope this clears your concern, Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-22T19:50:14.000+0000", "updated": "2016-03-22T19:51:25.000+0000" }, { "id": "380432", "author": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nYou couldn't reproduce before so I gave you example by coping code from ticket to achieve same error.\r\nI get same error if I copy code from Appcelerator Studio! And because of that i submited the ticket! It's really annoying bug because I end up on adding tickets via webpage instead Appcelerator because if i get this error I lost everything i wrote.\r\nAnd it would be nice if you would give me time to answer to your comment before closing the ticket just on a guess.\r\n", "updateAuthor": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T20:18:12.000+0000", "updated": "2016-03-22T20:18:12.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }