[almighty] Can't get the
Alexey Kazakov
alkazako at redhat.com
Wed Sep 7 00:06:03 UTC 2016
On 09/06/2016 03:59 PM, Dusty Mabe wrote:
>
> On 09/06/2016 06:23 PM, Aslak Knutsen wrote:
>> oops, forgot mailing-list: > > If you're running on current Core master, then type "1" doesn't exist. > > Core now comes with 4 Work Item Types built in; system.experience, system.feature, system.userstory & system.bug
> ok so the example in the readme is wrong. --> https://github.com/almighty/almighty-core/issues/208
This example may look something like ./bin/alm-cli create workitem
--payload '{"type": "system.experience" , "fields": {"system.title":
"some title", "system.description": "some description",
"system.creator": "tmaeder", "system.state": "new" }}' -H localhost:8080
I've created a PR to update README
https://github.com/alexeykazakov/almighty-core/pull/1
>>> Run "am-cli list workitemtype -H localhost:8080 --pp" to see which are available.
> I also found that there is some issue parsing urls in alm-cli:
>
> https://github.com/almighty/almighty-core/issues/209
>
>
>>> See examples/ for a working work item example: https://github.com/almighty/almighty-core/blob/master/examples/create_workitem.json > > ref: https://github.com/almighty/almighty-core/pull/195 > > -aslak- > > On Tue, Sep 6, 2016 at 10:25 PM, Dusty Mabe <dusty at dustymabe.com> wrote: > > > I'm running the command from the readme [1] and I am getting an error (see below). > Note that I have the output from alm-core streaming to my terminal so you see the > error from core as well. > > > [vagrant at f24 almighty-core]$ ./bin/alm-cli create workitem --payload '{"type": "1" , "name": "some name", "fields": { "system.owner": "tmaeder", "system.state": "open" }}' -H localhost:8080 > 2016/09/06 20:18:11 [INFO] started id=J5v/kihB POST=http://localhost:8080/api/workitems > 2016/09/06 20:18:11 [INFO] started req_id=w7m9vmdnwz-14 POST=/api/workitems from=::1 ctrl=WorkitemController action=Create > 2016/09/06 20:18:11 [INFO] payload req_id=w7m9vmdnwz-14
> raw={"fields":{"system.owner":"tmaeder","system.state":"open"},"type":"1"} > 2016/09/06 20:18:11 loading work item type 1 > 2016/09/06 20:18:11 not found, res={{0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC <nil>} 0 map[]} > 2016/09/06 20:18:11 [INFO] completed req_id=w7m9vmdnwz-14 status=400 error=N8DjLctB bytes=99 time=1.602504ms > 2016/09/06 20:18:11 [INFO] completed id=J5v/kihB status=400 time=6.633171ms > error: 400: {"id":"N8DjLctB","code":"bad_request","status":400,"detail":"Bad value for parameter 'type': '1'"} > > Any tips? > > Dusty > > [1] https://github.com/almighty/almighty-core/blame/master/README.adoc#L266 > > _______________________________________________ > almighty-public mailing list > almighty-public at redhat.com > https://www.redhat.com/mailman/listinfo/almighty-public > >
>
>
> _______________________________________________
> almighty-public mailing list
> almighty-public at redhat.com
> https://www.redhat.com/mailman/listinfo/almighty-public
More information about the almighty-public
mailing list