Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-20062

Using REST API the issue type can be change when workflows are completely different

      Summary

      When REST PUT  is made to change the request type of an issue that has a completely different workflow or field configuration is made, the result is a success. This shouldn't be the case as a change like this invalidates the workflow.

      Steps to Reproduce

      1. Create two workflows with different status
      2. Associate issue type separately to the two workflows created above
      3. Create two Jira issue and set each request type to the workflows created earlier
      4. If you attempt to change the issue type from the UI, it won't be possible.  
      5. If you attempt to change the issue type via REST api, the issue type is changed. This shouldn't be possible.

      For Example:

      PUT https://codebarrel.atlassian.net/rest/api/2/issue/SDD-17/
      
      {
      "fields": {"issuetype":{"id":10002}}
      }
      

      Expected Results

      An error should be returned that this is not possible.

      Actual Results

      A successful execution is returned.

      Workaround

      Currently none. 

       

            [JSWSERVER-20062] Using REST API the issue type can be change when workflows are completely different

            Matt Doar added a comment -

            What happens to an issue with a new issue type? Which statuses now appear?

            Matt Doar added a comment - What happens to an issue with a new issue type? Which statuses now appear?

            Matt Doar added a comment -

            Oh I see. The editmeta call is supposed to tell you which issue types can be used safely. But the update on the Jira side doesn't check for those values.

            Matt Doar added a comment - Oh I see. The editmeta call is supposed to tell you which issue types can be used safely. But the update on the Jira side doesn't check for those values.

            Matt Doar added a comment -

            I assume that it is not possible to change the issue type in the inline edit, not the Actions, Move way.
            I didn't know you could even try to change the issue type using REST

            Matt Doar added a comment - I assume that it is not possible to change the issue type in the inline edit, not the Actions, Move way. I didn't know you could even try to change the issue type using REST

              Unassigned Unassigned
              sayanloye Shakiru Ayanloye (Inactive)
              Affected customers:
              16 This affects my team
              Watchers:
              15 Start watching this issue

                Created:
                Updated: