Where to start? Add a simple workflow post function

Dear Community,

I would like to write a simple (simple, from use case perspective) workflow post function, that adds a comment with a static text, depending on the value of a custom select list (single choice).

So far:

  • I am familiar with the SDK / Java Development
  • I successfully did the tutorials
  • I wrote a very simple workflow condition upon an example I found on the web
  • I read most of the articles at developer.atlassian.com
  • managed to use Eclipse with the SDK
  • know about the existence of the API Reference

But now, where to start? How do I collect the bits and pieces? Should I click through the classes in the API Reference?

Am I on the right way with com.atlassian.jira.issue.comments.CommentManager and com.atlassian.jira.issue.CustomFieldManager?

What is the general approach?

Many Thanks
Thomas

1 Like

Hi Thomas,

Yeah you are on the right way imho.

As you mentioned you have already wrote a simple workflow condition. Have you also tried the PostFunction Tutorial here: https://developer.atlassian.com/server/jira/platform/creating-workflow-extensions/ ?

Try it out and with your guess of the CommentManager (CommentManager (Atlassian JIRA 7.6.1 API)) you should be able to implement your requirements.

Regards,
Christian

Thanks, @ChristianSantej ,
yes, I did this already. So I will try to add the CommentManager.
Thanks
Thomas