Jump to content

Recommended Posts

Posted

How can we set standard Jira fields (not customfields) when creating a Jira request from a workflow?

I am trying to create a Jira ticket from a workflow and I need to be able to set some standard Jira fields; in this case:

  • Due Date (field id: duedate)
  • Parent (field id: parent)

However, it seems that we are only able to set custom fields with whose format is "customfield_12345" as the Hornbill automation automatically prepends the "customfield_" to the field id.

I tried to use the field ids above in the the custom fields properties (see attached screenshot) of the Atlassian/Jira Cloud/Create Issue cloud automation with the following error:

Jira Error: customfield_parent: Field 'customfield_parent' cannot be set. It is not on the appropriate screen, or unknown.

image.png.42fdcc5f791515f329cbf98d5a301610.png

Posted

That is true for custom fields, although I've always used the full format in integration (customfield_<id>) rather than just supplying the ID and letting the code fill in the customfield_ bit.

Also, if you look at the JSON request format for Jira, all fields, custom and otherwise are sent in a single "fields":{} object, so within that object I can send a field named "customfield_10000" or "parent". There is no distinction, other than the naming convention.

The main thing for me right now though, is being able to supply some of the standard fields, eg. Parent and Due Date.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...