Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Eclipse Mylyn - Transition fails when date is required (french format?)

Hi,

In my (french) company, I use the Mylyn Atlassian connector in Eclipse to manage JIRA issue. It works (very very) fine, except for "Start Work" function (=> transition) when duedate is required on the issue.

Server send error (in french) on required duedate : The operation value must be a string.

The date content ("23\/juil.\/14", cf. below) disrupts JIRA (antislash vs string format ?)

Technical information :
- Eclipse v4.3.2 (Kepler SR2)
- Atlassion Connector v3.2.2.v20130909
- JIRA v5.2.10

Detail / analysis (network trace) of "Start Work" function:

Extrat of first GET, gives the workflow (with duedate required) :

GET /rest/api/latest/issue/MY-44/transitions?expand=transitions.fields
---
{
    "expand":"transitions",
    "transitions":[
        {
            "id":"11",
            "name":"Prendre en compte",
...
                "duedate":{
                    "required":true,
                    "schema":{
                        "type":"date",
                        "system":"duedate"
                    },
                    "name":"Date d'..ch..ance",
                    "operations":[
                        "set"
                    ]
                },
...

Extract of second GET, gives the issue content (duedate seems to have correct technical format) :

GET /rest/api/latest/issue/MY-44?expand=schema,names,transitions,editmeta,schema
---
{    "expand":"renderedFields,names,schema,transitions,operations,editmeta,changelog",
    "id":"251511",
    "self":"http://.../rest/api/latest/issue/251511",
    "key":"MY-44",
...
"duedate":"2014-07-23",
...

Third GET gives jira server info, not displayed here.

POST request transition :

POST /rest/api/latest/issue/251511/transitions?expand=transitions.fields
--- 
{"transition":{"id":11},"fields":{"summary":"Test SubTask","duedate":{"name":"23\/juil.\/14"}}}
Result is 400 Bad Request --- 
{"errorMessages":[],"errors":{"duedate":"La valeur de l'op..ration doit ..tre une cha..ne"}}

Complements

1) Reading question Jira eclipse MyLyn Due date date picker formatting problem, I try to change the date format picker in Advanced Settings -> Asvanced Configuration with yy-MM-dd (to have the same technical format date everywhere).
But nothing change :-(. The duedate in plugin UI & POST is always "23 juil. 2014"

2) I'm not admin of JIRA (to see configuration date on server), currently only information I have is that CVS import with dd/MM/yyyy HH:mm date format works.

3) When I change the duedate from Eclipse plugin & Submit, it works (duedate is yyyy-MM-dd) :

PUT /rest/api/latest/issue/251511
---
{
    "fields":{
        "issuetype":{
            "id":"11"
        },
...
        "duedate":"2014-07-28",
...
        "summary":"Test SubTask",
        "description":"Test",
        "assignee":{
            "name":"myUid"
        },
...
    }
}

=> I don't understand if it's a plugin bug (on transition), a locale configuration problem (client and/or server) or the duedate field definition (duedate":{"name":[date] seems strange).

Thank you in advance on any suggestion.

5 answers

1 accepted

1 vote
Answer accepted

The fix has been applied. Please try the latest snapshot build for 3.2.4 and let us know in case of any issues.

Snapshot update site: http://update.atlassian.com/atlassian-eclipse-plugin/rest/nightly/e3.7

Cheers,
Jacek

Verified on 3.2.4.I20140807-1000. Thanks !

Hi,

Great analysis. Let us investigate the problem and get back to you shortly.

Thanks,
Jacek

Hi Jacek. Thanks. Available for tests/informations helping to investigate (especially if it could depend of our jira context).

Problem reproduced: https://ecosystem.atlassian.net/browse/PLE-1565

We will try to fix it asap.

Verified on 3.2.4.I20140807-1000. Thanks !

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

394 views 5 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you