# Bug JIM-268 - Jira configuration form is fully reset when PAT is removed

Project: Stream Jira to OpenProject data Migrator
Status: confirmed
URL: https://community.openproject.org/work_packages/JIM-268

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Jira |
| Target versions |  |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Login as an admin user
    
2.  Go to the &quot;Administration&quot; page (`/admin`)
    
3.  Click on &quot;Import&quot; in the sidebar and navigate to `admin/import/jira`
    
4.  Click on &quot;+ Jira configuration&quot; to get to the form for the Jira configuration
    
5.  Fill out all fields and save the Jira configuration (can be random data) and use a &quot;PAT&quot; (personal access token)
    
6.  Submit the form
    
7.  Now on the Jira migrator page, click on `…` and on `🖊️ Edit configuration`
    
8.  Change the values for &quot;Name&quot; and &quot;Jira Server/Data Center URL&quot;
    
9.  Click on the 🗑️ icon next to the &quot;Personal Access Token&quot; field
    
10.  Accept the confirmation dialog
     

### What is the buggy behavior?

The form reloads and the changes the user already made to the &quot;Name&quot; and &quot;Jira Server/Data Center URL&quot; fields are gone again

### What is the expected behavior?

Clicking the 🗑️ button should only reset the &quot;Personal Access Token&quot; field, not the whole form. The &quot;Name&quot; and &quot;Jira Server/Data Center URL fields should stay untouched.

### Screenshots and other files

<img class="image_resized op-uc-image op-uc-image_inline" style="width:1346px;" src="/api/v3/attachments/926221/content">
