REST API: Find work flow field in item

Is there a way to determine, which field in an item type is the workflow field? I am writing a script, which generates a report showing the workflow state as text. I could not find a way to figure out which field is the workflow field from the item type information. Any ideas?

Comments

  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 789

    Hi Clemens,

    this information should be in the documenttype table (workflowFieldId). Is your script a Velocity script? Or are you using REST API?


    In Velocity you can use DocumentSource → getDocumentType → getWorkflowFieldId

    I see that the REST API endpoint GET Itemtypes/{itemTypeId} is not returning this information :-( Here you can narrow your search and limit to LOOKUP field types.

    I think we shoud submit a feature request for the cited endpoint

    Best regards,

    Alessandro

    Alessandro
    Systems Engineer
    SICK AG
  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 789
  • Clemens Bürgi
    Clemens Bürgi Member Posts: 3

    Hi Alessandro,
    I am using the REST API. As you mention I cannot get the workflow field from the itemtype information. Feature request is the only hope.

    Cheers,

    Clemens