{"action":"created","issue":{"url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/2043","repository_url":"https://api.github.com/repos/adaptlearning/adapt_framework","labels_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/2043/labels{/name}","comments_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/2043/comments","events_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/2043/events","html_url":"https://github.com/adaptlearning/adapt_framework/issues/2043","id":315122622,"node_id":"MDU6SXNzdWUzMTUxMjI2MjI=","number":2043,"title":"assessment: add handlebars helper to allow for dynamic question numbering","user":{"login":"moloko","id":1249597,"node_id":"MDQ6VXNlcjEyNDk1OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1249597?v=4","gravatar_id":"","url":"https://api.github.com/users/moloko","html_url":"https://github.com/moloko","followers_url":"https://api.github.com/users/moloko/followers","following_url":"https://api.github.com/users/moloko/following{/other_user}","gists_url":"https://api.github.com/users/moloko/gists{/gist_id}","starred_url":"https://api.github.com/users/moloko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moloko/subscriptions","organizations_url":"https://api.github.com/users/moloko/orgs","repos_url":"https://api.github.com/users/moloko/repos","events_url":"https://api.github.com/users/moloko/events{/privacy}","received_events_url":"https://api.github.com/users/moloko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-17T15:49:23Z","updated_at":"2018-10-10T14:32:28Z","closed_at":null,"author_association":"MEMBER","body":"Currently if you have a randomised assessment and want your question titles to be 'question 1', 'question 2' you can't do this without customisation - so it would be useful to include this as part of the assessment extension.\r\n\r\nFor a course with only one assessment, you can do this:\r\n```js\r\nHandlebars.registerHelper(\"questionNumber\", function getQuestionNumber() {\r\n    var questionComponents = Adapt.assessment.get()[0]._currentQuestionComponents;\r\n    return questionComponents.indexOf(Adapt.findById(this._id)) + 1;\r\n});\r\n```\r\nIt'll therefore need some adjustment to make sure it works in courses with multiple assessments."},"comment":{"url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/comments/428595609","html_url":"https://github.com/adaptlearning/adapt_framework/issues/2043#issuecomment-428595609","issue_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/2043","id":428595609,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODU5NTYwOQ==","user":{"login":"moloko","id":1249597,"node_id":"MDQ6VXNlcjEyNDk1OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1249597?v=4","gravatar_id":"","url":"https://api.github.com/users/moloko","html_url":"https://github.com/moloko","followers_url":"https://api.github.com/users/moloko/followers","following_url":"https://api.github.com/users/moloko/following{/other_user}","gists_url":"https://api.github.com/users/moloko/gists{/gist_id}","starred_url":"https://api.github.com/users/moloko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moloko/subscriptions","organizations_url":"https://api.github.com/users/moloko/orgs","repos_url":"https://api.github.com/users/moloko/repos","events_url":"https://api.github.com/users/moloko/events{/privacy}","received_events_url":"https://api.github.com/users/moloko/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T14:32:28Z","updated_at":"2018-10-10T14:32:28Z","author_association":"MEMBER","body":"checked and it seems the current version of PLP will need an update (done) but the new Adapt v4 version won't..."}}
{"actor":{"display_login":"moloko"}}