> For the complete documentation index, see [llms.txt](https://help.codegrade.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.codegrade.com/setup-assignment/build-assignment/creating-an-assignment/importing-a-previous-assignment.md).

# 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="/files/9HDXdZyV1v1zxljxc175" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
