Work item state control method and device, storage medium and computer device
By automatically adjusting the status of work items, the problem of low management efficiency caused by manual status maintenance is solved, and efficient project management without manual operation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- YGSOFT INC
- Filing Date
- 2022-05-07
- Publication Date
- 2026-06-19
Smart Images

Figure CN114968707B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of research and development management, and in particular to a method, apparatus, storage medium, and computer equipment for controlling the status of a work item. Background Technology
[0002] In the software development process, R&D management tools (such as ONES, Jira, etc.) are generally used to improve the efficiency of software development and delivery. R&D management tools have project management modules and pipeline management modules. Users manage work items in the project management module and configure pipeline tasks in the pipeline management module. Then, users judge the execution status of pipeline tasks and set the running status of work items according to the execution status. As can be seen, the user operation in the process of monitoring work items is relatively complex. Summary of the Invention
[0003] This application provides a method, apparatus, storage medium, and computer equipment for controlling the status of work items, which can solve the problem of low management efficiency caused by manually maintaining the status of work items in the prior art. The technical solution is as follows:
[0004] In a first aspect, embodiments of this application provide a method for controlling the status of a work item, the method comprising:
[0005] Set the status of work items based on user-defined status flags;
[0006] When the status of the work item is detected as completed, the pipeline task associated with the work item is triggered to execute;
[0007] Monitor the execution results of the pipeline tasks;
[0008] If the execution result is failure, the status of the work item will be changed to incomplete;
[0009] If the execution result is successful, the status of the work item will remain unchanged.
[0010] Secondly, embodiments of this application provide a control device for the status of a work item, the device comprising:
[0011] The marking unit is used to set the status of work items based on the user's status marking instructions;
[0012] An execution unit is configured to trigger the execution of the pipeline task associated with the work item when the status of the work item is detected as completed.
[0013] A monitoring unit is used to monitor the execution results of the pipeline tasks;
[0014] The change unit is used to change the status of the work item to incomplete if the execution result is execution failure;
[0015] A holding unit is used to keep the state of the work item unchanged if the execution result is successful.
[0016] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.
[0017] Fourthly, embodiments of this application provide a computer device, which may include: a processor and a memory; wherein the memory stores a computer program, the computer program being adapted to be loaded by the processor and to execute the above-described method steps.
[0018] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0019] When a work item's status is detected as "completed," the associated pipeline task is triggered to begin execution. The execution result of the pipeline task is then obtained. If the execution result is successful, the current status of the work item remains unchanged. If the execution result is unsuccessful, the current status of the work item is changed to "incomplete." This application binds work items to pipeline tasks, enabling automatic adjustment of work item status by monitoring the execution result of the pipeline tasks. The entire process does not require manual intervention, thus saving manual operation steps and improving project management efficiency. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the network architecture provided in the embodiments of this application;
[0022] Figure 2 This is a flowchart illustrating the method for controlling the status of work items provided in an embodiment of this application;
[0023] Figure 3 This is a schematic diagram of the user interface provided in an embodiment of this application;
[0024] Figure 4 This is a schematic diagram of the structure of a control device for the status of a work item provided in this application;
[0025] Figure 5This is a schematic diagram of the structure of a computer device provided in this application. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0027] It should be noted that the method for controlling the status of work items provided in this application is generally executed by computer equipment, and correspondingly, the control device for the status of work items is generally set in the computer equipment.
[0028] Figure 1 An exemplary system architecture is shown that can be applied to the control method or control device for the status of work items in this application.
[0029] like Figure 1 As shown, the system architecture may include a computer device 101 and a server 102. The computer device 101 and the server 102 can communicate via a network, which serves as the medium for providing communication links between the various units. The network may include various types of wired or wireless communication links, such as wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables, and wireless communication links including Bluetooth communication links, Wi-Fi communication links, or microwave communication links.
[0030] Among them, server 102 is equipped with R&D management tools. The computer calls these R&D management tools to manage R&D projects, such as work item management and pipeline task management.
[0031] It should be noted that computer device 101 and server 102 can be either hardware or software. When computer device 101 and server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When computer device 101 and server 102 are software, they can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.
[0032] The computer device described in this application can be equipped with various communication client applications, such as video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0033] Computer devices can be either hardware or software. When a computer device is hardware, it can be any computer device with a display screen, including but not limited to smartphones, tablets, laptops, and desktop computers. When a computer device is software, it can be installed on the computer devices listed above. It can be implemented as multiple software programs or software modules (e.g., used to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0034] When a computer device is used as hardware, it can also be equipped with a display device and a camera. The display device can be any device capable of displaying information, and the camera is used to capture video streams. Examples of display devices include cathode ray tube displays (CR), light-emitting diode displays (LED), e-ink screens, liquid crystal displays (LCD), and plasma display panels (PDP). Users can utilize the display device on their computer to view displayed text, images, videos, and other information.
[0035] It should be understood that Figure 1 The number of computer devices, networks, and servers shown is for illustrative purposes only. The number of computer devices, networks, and servers can be any number, depending on the implementation requirements.
[0036] The following will be combined with the appendix Figure 2 This application provides a detailed description of the method for controlling the status of work items according to embodiments of the present application. The control device for the status of work items in the embodiments of the present application may be... Figure 1 The computer equipment shown.
[0037] Please see Figure 2 This is a flowchart illustrating a method for controlling the state of a work item, as provided in an embodiment of this application. Figure 2 As shown, the method described in this application embodiment may include the following steps:
[0038] S201. Set the status of the work item based on the user's status flag instruction.
[0039] Status marker instructions are used to set the status of work items. These instructions are generated by the user through interactive actions performed by an input device, such as a mouse, keyboard, or touchscreen. After the computer device runs the R&D management function, it displays a user interface. The user generates status marker instructions by performing interactive actions on the user interface through an input device. Work items represent R&D projects, such as mini-program development projects, login page development projects, and APP development projects. The status of a work item includes "completed" and "incomplete." When a user creates a new work item, its status defaults to "incomplete." When the user starts the work item, its status is set to "completed" based on the user's status markers.
[0040] Furthermore, the status of the work item is set based on the user's status flags, including:
[0041] Display status marker control; wherein, the marker control includes multiple status markers, each status marker being associated with a different status;
[0042] A state flag is selected from the multiple state flags based on the selection instruction;
[0043] Set the status of the work item based on the selected status flag.
[0044] The computer device displays a status marker control on the user interface. The status marker control is a graphical control, such as a panel with multiple status markers of different colors, each representing a different state; or a slider control with a slider that controls different states by placing the slider in different positions (i.e., different status markers). The computer device sets the status of work items based on the status markers selected by the user. Setting the status of work items in a graphical way can improve operational efficiency.
[0045] S202. When the status of a work item is detected as completed, the pipeline task associated with the work item is triggered.
[0046] The process involves the computer periodically querying the status of work items. When a work item is detected as completed, the computer identifies the pre-associated pipeline task. This pipeline task comprises multiple stages, each consisting of multiple steps. These stages can be organized sequentially, in parallel, or in a hybrid manner. The computer then executes the pipeline task associated with the work item. The computer can invoke Jenkins plugins to execute these pipeline tasks. For example, the pipeline task associated with a work item might be... Figure 3 As shown in the five stages, when the computer device detects that the work item is completed, the computer device calls the Jenkins plugin via service call and executes the above five stages in a serial manner.
[0047] S203. Monitor the execution results of the production line tasks.
[0048] The computer equipment monitors the execution results of pipeline tasks. Monitoring methods can include polling to query the execution results or the pipeline task actively pushing the results after execution. The execution results include: running status, duration, most recent running time, and most recent user. For example: See [link to documentation]. Figure 3 The user interface diagram showing the execution results indicates that the running status includes successful execution and failed execution. Successful execution is indicated by a green marker, while failed execution is indicated by a red marker.
[0049] S204. If the execution result is failure, change the status of the work item to incomplete.
[0050] In this process, if all stages of a pipeline task run successfully, the pipeline task is considered successfully executed; if at least one stage fails, the pipeline task is considered unsuccessful. When the computer determines that a pipeline task has failed, it changes the work item's status from completed to incomplete. Furthermore, the computer counts the number of successfully executed stages and the total number of stages in the pipeline task, calculates the execution progress based on these two figures, and displays the execution progress and the names of the failed stages on the user interface so that the user can understand the work item's execution progress in a timely and intuitive manner.
[0051] S205. If the execution result is successful, the status of the work item remains unchanged.
[0052] The work item's status is only truly completed when the computer device parses and executes the result as successful, and the work item's status remains unchanged.
[0053] In one or more possible embodiments, prior to S201, the following is also included:
[0054] Create work items and configure their attribute information;
[0055] Create pipeline tasks and configure the attribute information of the pipeline tasks;
[0056] Bind the work item to the pipeline task.
[0057] The computer device creates work items and configures their attributes in the user interface based on user creation instructions. These attributes include: work item name, ID, project name, and deadline. Then, a pipeline task is created and its attributes are configured in the same user interface. These attributes include: pipeline name, ID, stage name, code repository address, and trigger method. Finally, the work item ID and the pipeline task ID are bound together.
[0058] In the embodiments of this application, when managing work items, if the status of a work item is detected as "completed," the associated pipeline task is triggered to start execution. Then, the execution result of the pipeline task is obtained. If the execution result is successful, the current status of the work item remains unchanged; if the execution result is unsuccessful, the current status of the work item is changed to "incomplete." This application automatically adjusts the status of work items by binding work items and pipeline tasks and monitoring the execution result of pipeline tasks. The entire process does not require manual intervention, thus saving manual operation steps and improving the efficiency of project management.
[0059] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0060] Please see Figure 4 This illustration shows a structural schematic diagram of a work item status control device provided in an exemplary embodiment of this application, hereinafter referred to as device 4. Device 4 can be implemented as all or part of a computer device through software, hardware, or a combination of both. Device 4 includes: a marking unit 401, an execution unit 402, a monitoring unit 403, a change unit 404, and a holding unit 405.
[0061] The marking unit 401 is used to set the status of the work item based on the user's status marking instruction;
[0062] The execution unit 402 is used to trigger the execution of the pipeline task associated with the work item when the status of the work item is detected as completed;
[0063] Monitoring unit 403 is used to monitor the execution results of the pipeline task;
[0064] The change unit 404 is used to change the status of the work item to incomplete if the execution result is execution failure;
[0065] The holding unit 405 is used to keep the state of the work item unchanged if the execution result is successful.
[0066] In one or more possible embodiments, it also includes:
[0067] A configuration unit is used to create work items and configure the attribute information of the work items;
[0068] Create pipeline tasks and configure the attribute information of the pipeline tasks;
[0069] Bind the work item to the pipeline task.
[0070] In one or more possible embodiments, the pipeline task includes multiple stages, each stage consisting of at least one step, and the multiple stages are organized in a serial, parallel, or hybrid manner.
[0071] In one or more possible embodiments, setting the status of the work item based on the user's marking instructions includes:
[0072] Display status marker control; wherein, the marker control includes multiple status markers, each status marker being associated with a different status;
[0073] A state flag is selected from the multiple state flags based on the selection instruction;
[0074] Set the status of the work item based on the selected status flag.
[0075] In one or more possible embodiments, monitoring the execution results of the pipeline task includes:
[0076] The execution results of pipeline tasks are queried using a polling method; wherein, the execution results include the running status, duration, most recent running time, and most recent runner of each stage.
[0077] In one or more possible embodiments, triggering the execution of the pipeline task associated with the work item includes:
[0078] The pipeline tasks associated with the work item are executed through services provided by the Jenkins plugin.
[0079] In one or more possible embodiments, the step of changing the status of the work item to incomplete if the execution result is execution failure further includes:
[0080] Count the number of stages that successfully run in the pipeline task and the total number of stages;
[0081] Calculate the execution progress based on the quantity and the total data;
[0082] The execution progress and the names of the stages that failed are displayed in the user interface of the execution results.
[0083] It should be noted that the device 4 provided in the above embodiments, when executing the work item status control method, is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the work item status control device and the work item status control method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0084] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0085] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figure 2 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figure 2 The specific details of the illustrated embodiments will not be elaborated here.
[0086] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the method for controlling the state of work items as described in the above embodiments.
[0087] Please see Figure 5 This document provides a schematic diagram of the structure of a computer device according to an embodiment of this application. Figure 5 As shown, the computer device 500 may include: at least one processor 501, at least one network interface 504, user interface 503, memory 505, and at least one communication bus 502.
[0088] The communication bus 502 is used to enable communication between these components.
[0089] The user interface 503 may include a display screen and a camera. Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0090] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0091] The processor 501 may include one or more processing cores. The processor 501 connects to various parts within the computer device 500 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and by calling data stored in the memory 505. Optionally, the processor 501 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 501 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip, without being integrated into the processor 501.
[0092] The memory 505 may include random access memory (RAM) or read-only memory. Optionally, the memory 505 may include a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. Figure 5 As shown, the memory 505, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs.
[0093] exist Figure 5In the computer device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and to obtain the user's input data; while the processor 501 can be used to call the application program stored in the memory 505 and specifically execute, such as Figure 2 The method shown can be referred to for details. Figure 2 As shown, it will not be elaborated further here.
[0094] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.
[0095] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A method of controlling a state of a work item, characterized by, include: Set the status of work items based on user-defined status flags; Before setting the status of the work item based on the user's marking instructions, the method further includes: Create work items and configure the attribute information of the work items; Create pipeline tasks and configure the attribute information of the pipeline tasks; Bind the work item to the pipeline task; When the status of the work item is detected as completed, the pipeline task associated with the work item is triggered to execute; Monitor the execution results of the pipeline tasks; If the execution result is failure, the status of the work item will be changed to incomplete; If the execution result is successful, the status of the work item will remain unchanged.
2. The method according to claim 1, characterized in that, The pipeline task includes multiple stages, each stage consisting of at least one step, and the multiple stages are organized in a serial, parallel, or hybrid manner.
3. The method according to claim 2, characterized in that, The setting of the status of work items based on user-defined marking instructions includes: Display status marker control; wherein, the marker control includes multiple status markers, each status marker being associated with a different status; A state flag is selected from the multiple state flags based on the selection instruction; Set the status of the work item based on the selected status flag.
4. The method according to claim 1 or 3, characterized in that, The execution results of the monitoring pipeline task include: The execution results of pipeline tasks are queried using a polling method; wherein, the execution results include the running status, duration, most recent running time, and most recent runner of each stage.
5. The method according to claim 4, characterized in that, The triggering of the pipeline task associated with the work item includes: The pipeline tasks associated with the work item are executed through services provided by the Jenkins plugin.
6. The method according to claim 5, characterized in that, If the execution result is failure, the status of the work item will be changed to incomplete, which also includes: Count the number of stages that successfully run in the pipeline task and the total number of stages; Calculate the execution progress based on the quantity and the total data; The execution progress and the names of the stages that failed are displayed in the user interface of the execution results.
7. A control device for the status of a work item, characterized in that, include: The marking unit is used to set the status of work items based on the user's status marking instructions; Before setting the status of a work item based on the user's marking instructions, the process further includes: creating a work item and configuring the attribute information of the work item; creating a pipeline task and configuring the attribute information of the pipeline task; and binding the work item and the pipeline task. An execution unit is configured to trigger the execution of the pipeline task associated with the work item when the status of the work item is detected as completed. A monitoring unit is used to monitor the execution results of the pipeline tasks; The change unit is used to change the status of the work item to incomplete if the execution result is execution failure; A holding unit is used to keep the state of the work item unchanged if the execution result is successful.
8. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions, which are adapted to be loaded by a processor and executed as the method steps of any one of claims 1 to 6.
9. A computer device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 6.