Create Issue with custom fields using REST API

Basically I want to create an issue using REST API and populate some custom fields of it.

Is it possible?

YT version 5
0
13 comments
Hello Krasm,

Please, take a look at this REST method http://confluence.jetbrains.com/display/YTD5/Create+New+Issue . It's for

Thank you.
0
Thanks,
But this doesn't allow me to set Custom Fields. Only some basics like project, summary, description etc. I think.
0
Krasm,

Yes, it's basicaly reporting an issue. To change every custom field you wish, please take a look at the Apply Command method http://confluence.jetbrains.com/display/YTD5/Apply+Command+to+an+Issue .
All commands that can be applied, are taken from Command Window tool http://confluence.jetbrains.com/display/YTD5/Quick+Start+Guide.+Using+Command+Window .
0
this doesn't satisfy me either. If I create issue in two step process, i.e create issue and then apply command(s) to it, then first notification with issue created status will be send with Custom Fields empty. I want Custom Fields to be filled at this point..
0
Hi,
Your concern is clear. However, YouTrack merges notifications on changes made during a minute, so you will receive a notification with all fields filled.
0
Hi there,

Are you sure about that? This doesn't work for me as you described. I can receive notification but with custom fields not filled.
After visiting the issue's webpage (before even notification is being send), I can see the custom fields are populated with correct values.

PS Obviously modifying the issue from web UI will create notifications with custom fields populated.

PS2 I'am using YT 5, standalone
0
Hello and sorry for not responding earlier.
In case an issue is reported and then modified by the same user within a minute (no matter by what means: UI or REST), there'll be only one notification. Do you observe a different behaviour?

Regards,
  Alexander
0
Hi,

Yes, notifications aren't merged when creating issue via REST, from web UI it seems to be working OK.

I think in YT 4 it was working fine, but I can't confirm that for sure as we were using that version just couple of days and then we decided to make an update to YT 5.
0
When creating issues via REST, are you logged in with the same account you use later to modify field values?
0
Yes it is the same account under the same session.
0
Hi,

The problem you've met, appears because of this issue http://youtrack.jetbrains.com/issue/JT-20491. Please, leave your comments and votes.
It'll be fixed in next releases.

Thank you.
0
I've created a separate issue on this. Please, take a look http://youtrack.jetbrains.com/issue/JT-21336
0
OK, thank you.

PS Between 10 and 26 August I will have only occasional access
to my e-mail.
0

Please sign in to leave a comment.