Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Deprecated methods for issue navigator operations (bulk operation and custom operation)

David Ortiz August 27, 2020 edited

Hi,

you want to do a custom operation for the issues browser to work with the issues of a jql. I am contemplating two options:

  1. Bulk operation.
  2. Operation in the actions menu of the issue navigator.
    1_custom_action.png

I have doubts about how to recover the jql issues, since they are deprecated methods and will be eliminated.

 

In the case of bulk operation:

My application takes control from step 3 of the bulk operation, so it does not have access to the screens of the previous steps, and therefore I cannot store any type of information in the front.

2_init_execution_my_app.png

 

Also, when the app is disabled or uninstalled, the bulk operation is not cleared.

3_uninstall_app.png

 

Examining the code, the bulk operations of the apps are stored in a private attribute

ProgressAwareBulkOperation> pluginProvidedBulkOperations = Maps.newLinkedHashMap();

of the DefaultBulkOperationManager class when the addProgressAwareBulkOperation() method is invoked.

this.bulkOperationManager.addProgressAwareBulkOperation(MyBulkOperation.NAME_KEY, MyBulkOperation.class);

 

 

In the case of the operation:
I can get the jql by extending the IssueActionSupport class, but the getCurrentJQL() and getSearchRequest() methods are also deprecated.

The button is a web-item in the descriptor, and only when clicked is my custom action executed.

 

 

Questions:
What would be the correct way not to use deprecated methods?
Is there a way to unregister the bulk operation?

Thanks.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery learning path, product discovery training, idea prioritization, align stakeholders, discovery to delivery, product collaboration, atlassian learning, dev process, roadmap planning, insight capture, team alignment

Elevate Your Skills with Jira Product Discovery!

Unlock your potential and learn how to use Jira Product Discovery to your advantage. You’ll have the expertise to revolutionize ideas and insights, roadmapping, engage and align teams and stakeholders, and deliver the best solutions—faster. Enroll today!

Start Learning
AUG Leaders

Atlassian Community Events