hi @Manh Tuan Do did you try PrioritySchemeManager (https://docs.atlassian.com/software/jira/docs/api/7.7.0/com/atlassian/jira/issue/fields/config/manager/PrioritySchemeManager.html)? There are some examples in the top of javadoc page...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events