release-engineering / Sync2Jira

Service to sync upstream Tickets/PR's with downstream JIRA tickets!
GNU Lesser General Public License v2.1
10 stars 21 forks source link

Change the status of jira issue when the github issue gets assigned #169

Open mohanboddu opened 3 months ago

mohanboddu commented 3 months ago

Just like pr_updates for changing the status of jira issue based on the PR, it would be great to have the ability to change the status of jira issue when the github issue gets assigned.

Zyzyx commented 2 months ago

Hi Mohan, we need a little more information. I understand the original request to change status to something when the issue is assigned. In the config file I could see us introducing an option to specify which status to transition to when that event happens. (or more precisely, which transition to take)

mohanboddu commented 2 months ago

Thank you @Zyzyx for looking into this:

  • What if it is re-assigned to another person while the Jira issue is later in the workflow? Should it go back?

I think it should stay in the same status, if the status is changed in jira we should respect it.

  • What if the issue becomes unassigned?

If the issue is in the same status as the one in config (something), then change it back to New status or if the status is changed in jira, same as above, respect the status change in jira and leave it.

  • What if an assignee is added later on?

If another assignee is added on top of the existing one, same as above, respect the jira status and leave as is.