# Importing a previous assignment

Most of the times, it is not necessary to set up a whole assignment from scratch. In CodeGrade, you can simply import / copy a previous assignment's settings to your current assignment.&#x20;

{% hint style="success" %}
For the D2L Brightspace learning management system, using the built in "Duplicate Assignment" option will automatically import all assignment settings in CodeGrade correctly too.
{% endhint %}

<figure><img src="https://2172486256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKAQsDlg_P20iQy3JDs%2Fuploads%2FDVlneazHEaKKFQ3OsGKe%2FScreenshot%202025-08-01%20at%2013.06.52.png?alt=media&#x26;token=17c1c4df-9d6b-44f9-b452-59b7ddb29911" alt=""><figcaption><p>Importing an assignment on the Assignment Manager</p></figcaption></figure>

1. Navigate to the **Assignment Settings** page and go to the **General** tab.
2. Scroll all the way down to the "*Danger Zone*", here you can find the *Copy Assignment* option.
3. First select the course from which you want to import an assignment. Secondly, select an assignment from the list of assignments in that course.
4. Press **Import**. All assignment settings will be copied to the current assignment now (including AutoTest, rubric, hand in requirements, submission settings, test submission, etc.).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.codegrade.com/setup-assignment/build-assignment/creating-an-assignment/importing-a-previous-assignment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
