1# MissionInfo 2 3The **MissionInfo** module defines detailed information about a mission. The information can be obtained through [getMissionInfo](js-apis-app-ability-missionManager.md#missionmanagergetmissioninfo). 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8 9## Modules to Import 10 11```ts 12import missionManager from '@ohos.app.ability.missionManager'; 13``` 14 15**System capability**: SystemCapability.Ability.AbilityRuntime.Mission 16 17**System API**: This is a system API and cannot be called by third-party applications. 18 19| Name| Type| Readable| Writable| Description| 20| -------- | -------- | -------- | -------- | -------- | 21| missionId | number | Yes| Yes| Mission ID.| 22| runningState | number | Yes| Yes| Running state of the mission.| 23| lockedState | boolean | Yes| Yes| Locked state of the mission.| 24| timestamp | string | Yes| Yes| Latest time when the mission was created or updated.| 25| want | [Want](js-apis-application-want.md) | Yes| Yes| Want information of the mission.| 26| label | string | Yes| Yes| Label of the mission.| 27| iconPath | string | Yes| Yes| Path of the mission icon.| 28| continuable | boolean | Yes| Yes| Whether the mission can be continued on another device.| 29 30**Example** 31```ts 32import missionManager from '@ohos.application.missionManager'; 33 34missionManager.getMissionInfo('12345', 1, (error, data) => { 35 console.info('getMissionInfo missionId is:' + JSON.stringify(data.missionId)); 36 console.info('getMissionInfo runningState is:' + JSON.stringify(data.runningState)); 37 console.info('getMissionInfo lockedState is:' + JSON.stringify(data.lockedState)); 38 console.info('getMissionInfo timestamp is:' + JSON.stringify(data.timestamp)); 39 console.info('getMissionInfo want is:' + JSON.stringify(data.want)); 40 console.info('getMissionInfo label is:' + JSON.stringify(data.label)); 41 console.info('getMissionInfo iconPath is:' + JSON.stringify(data.iconPath)); 42 console.info('getMissionInfo continuable is:' + JSON.stringify(data.continuable)); 43}); 44``` 45