Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set dueDate in Workflow activiti

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to set up the dueDate in the workflow activiti. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

When creating an issue through JIRA-REST-API, you cannot set the duedate field? Create an issue through JIRA-REST-API, use the POST/rest/api/2/issue interface, but the duedate field is not set (other normal), access to a lot of data, nothing, do not know where the error is.

DueDate setting in Workflow activiti

Format analysis

R2max 2015-06-04T19:25:16.828696-07:00/P1DT10S

The above string is divided into three parts by "/", namely:

Repetition times / start time / run interval

Number of repetition

R-will be repeated forever

R1-will be repeated

R231-will be repeated 231 times.

Start time

The time the task was first run. If the start date time has passed, Kala returns an error.

The "T" is used to separate the date and time, and the "- 07:00" followed by the time indicates the West Seventh District. Note that the "-" is a hyphen, not a minus sign.

The time zone defaults to 0 time zone, which can be represented by "Z" or not written.

For our country, "+ 08:00" should be used to indicate the East eighth District.

The above string represents June 4, 2015, 19:25:16, 828696 nanoseconds, West Seven.

Running interval

The run interval begins with "P", and the date and time are separated by "T" as above, such as P1Y2M10DT2H30M15S

P start mark

1Y-one year

2m-two months

10D-Ten days

T-cut marks for time and date minutes

2H-two hours

30m-30 minutes

15s 15 seconds

For example, note that if there is no year, month and day, "T" cannot be omitted.

P1DT1M-execute once a minute a day

P1W-execute once a week

PT1H- executes once an hour

PT10S- executes once every ten seconds.

Why can't you set the duedate field?

Context environment

JIRA-5

JIRA-REST-API

CreateanewissueviaPOST

Reproduce

Related code

Look up the definition of duedate obtained by rest/api/2/field

{

"id": "duedate"

"name": "DueDate"

"custom": false

"orderable": true

"navigable": true

"searchable": true

"schema": {

"type": "date"

"system": "duedate"

}

}

My POST duedate information

"duedate": "2016-10-20"

Error message

Error setting duedate Times

{"errorMessages": [], "errors": {"duedate": "Field'duedate'cannotbeset.Itisnotontheappropriatescreen,orunknown"

This is the end of this article on "how to set up dueDate in Workflow activiti". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report