{"action":"created","issue":{"url":"https://api.github.com/repos/gocd/gocd/issues/990","labels_url":"https://api.github.com/repos/gocd/gocd/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/990/comments","events_url":"https://api.github.com/repos/gocd/gocd/issues/990/events","html_url":"https://github.com/gocd/gocd/issues/990","id":65395417,"number":990,"title":"Get Pipeline label of newly triggered Pipeline","user":{"login":"madhurranjan","id":596447,"avatar_url":"https://avatars.githubusercontent.com/u/596447?v=3","gravatar_id":"","url":"https://api.github.com/users/madhurranjan","html_url":"https://github.com/madhurranjan","followers_url":"https://api.github.com/users/madhurranjan/followers","following_url":"https://api.github.com/users/madhurranjan/following{/other_user}","gists_url":"https://api.github.com/users/madhurranjan/gists{/gist_id}","starred_url":"https://api.github.com/users/madhurranjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhurranjan/subscriptions","organizations_url":"https://api.github.com/users/madhurranjan/orgs","repos_url":"https://api.github.com/users/madhurranjan/repos","events_url":"https://api.github.com/users/madhurranjan/events{/privacy}","received_events_url":"https://api.github.com/users/madhurranjan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-31T08:19:15Z","updated_at":"2015-09-16T13:00:05Z","closed_at":null,"body":"Hi,\r\n\r\nLets say I've instantiated a pipeline via the POST call. The response should tell me the pipeline label that has been kickstarted and I should be able to query on that pipeline label. I remember something similar was present earlier . Can you tell me if this requirement can be met with the current list of apis ?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/gocd/gocd/issues/comments/140734457","html_url":"https://github.com/gocd/gocd/issues/990#issuecomment-140734457","issue_url":"https://api.github.com/repos/gocd/gocd/issues/990","id":140734457,"user":{"login":"drmuey","id":1204812,"avatar_url":"https://avatars.githubusercontent.com/u/1204812?v=3","gravatar_id":"","url":"https://api.github.com/users/drmuey","html_url":"https://github.com/drmuey","followers_url":"https://api.github.com/users/drmuey/followers","following_url":"https://api.github.com/users/drmuey/following{/other_user}","gists_url":"https://api.github.com/users/drmuey/gists{/gist_id}","starred_url":"https://api.github.com/users/drmuey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmuey/subscriptions","organizations_url":"https://api.github.com/users/drmuey/orgs","repos_url":"https://api.github.com/users/drmuey/repos","events_url":"https://api.github.com/users/drmuey/events{/privacy}","received_events_url":"https://api.github.com/users/drmuey/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T13:00:04Z","updated_at":"2015-09-16T13:00:04Z","body":"Another tack would be to add the thing we want to look for to the label but ATM pipeline labels:\r\n\r\n- can not have environment vars (try it, you’ll get “You have defined a label template in pipeline phabricator-build that refers to a material called env.WHATEVER, but no material with this name is defined.”)\r\n- can have params but params can't be sent in the API call (or am I reading the doc wrong?)\r\n\r\nPerhaps a feature allowing use of environment vars in pipeline labels would be a simpler way to solve this problem?"}}