/rest/minyaaTime/1.0/worklog/create/{issueId}

DescriptionCreate a Worklog for an Issue in respect of different Custom Minyaa Time Permissions (Delegate Log Work, Wokrlog Closure Period, Required/Allowed Worklgo Type)
MethodPOST
Content-Typeapplication/json
Parameters
ParameterFromValuesDescriptions
issueIdPathParamintId. of the issue
LogWorkPOSTParambean
PropertiesOrdinality (Default)ValuesDescriptions
timeSpentMandatorystringSpent time using the JIRA Format 9w 9d 9h 9m
adjustEstimateOptional (auto)stringDefine how is set the Remaining Estimate ...[auto|leave|new|manual]
timeRemainingOptionalstringThe Remaing Estimate to use in case of [new]
startDateOptional (Now)datetimeDate of Log Work occurrence using the format
[yyyy-MM-dd'T'HH:mm:ss.SSSZ].
authorNameOptional (current User)stringAuthor of Worklog.
worklogTypeIdOptionalstringId of the Worklog Type
commentOptionalstringAssociated comment
commentLevelOptionalstringHow is restricted the Comment visibility
[group:groupName] or [role:projectRoleId]

 

  • Create a Log Work for Now qualified with Worklog Type identified by 10000

    {
    	"timeSpent":"15m",
    	"worklogTypeId":"10000",
    	"comment":"Hello"
    }
  • Create a Log Work with :
    • a specified Date
    • another Log Work author (Edit Worklogs for Team Members permission required)
    • a comment restricted to jira-developers group
    • a Remaining Estimate set to 1d
    •  {
      	"timeSpent":"15m",
      	"adjustEstimate":"new",
      	"timeRemaining":"1d",
      	"startDate":"2014-09-10T15:00:00.000+0200",
      	"authorName":"dev1",
      	"worklogTypeId":"10000",
      	"comment":"Hello",
      	"commentLevel":"group:jira-developers"
      }
HTTP 200 Return

On Worklog creation a JSON bean is returned :

 {"self":"http://localhost:8080/rest/minyaaTime/1.0/worklog/10623",
"worklogId":10623,
"timeLogged":900,
"authorName":"dev1",
"startDate":"2014-09-10T15:00:00.000+0200",
"created":"2014-09-11T10:00:37.902+0200",
"updated":"2014-09-11T10:00:37.902+0200",
"updateAuthorName":"dev1",
"worklogTypeId":"10000",
"comment":"Hello",
"commentLevel":"jira-developers"}
 {"self":"http://localhost:8080/rest/minyaaTime/1.0/worklog/10623",
"worklogId":10623,
"timeLogged":900,
"authorName":"admin",
"startDate":"2014-09-10T15:00:00.000+0200",
"created":"2014-09-11T10:00:37.902+0200",
"updated":"2014-09-11T10:00:37.902+0200",
"updateAuthorName":"dev1",
"worklogTypeId":"10000",
"comment":"Hello",
"projectRoleId":10000}
PropertiesValuesDescriptions
selfstringURL to retrieve the details of this Worklog
worklogIdintId. of the Worklog
timeLoggedxxxLogged time expressed in seconds
authorNamestringLog Work author
startDatedatetimeDate of Log Work
createddatetimeCreation Date of Log Work
updateddatetimeUpdate Date of Log Work
updateAuthorNamestringLog Work updater
worklogTypeIdstringId. of Worklog Type
commentstringAssociated Comment
commentLevelstringGroup Name use to resctrict access to the Worklog (exclusive with projectRoleId)
projectRoleIdintProject Role Id. use to resctrict access to the Worklog (exclusive with commentLevel)
HTTP 404 Return

In case of Validation error, the Error Collection is returned.

 [{"errorMessages":["Any Error Message"],"errors":{}}]

 


On this page:

 

Useful hint

See also ...

  • No labels